![]() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // /.gitignore | |
| # See https://help.github.com/ignore-files/ for more about ignoring files. | |
| # dependencies | |
| /node_modules | |
| # testing | |
| /coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const utilities = require('../index'); | |
| describe.skip('default', () => { | |
| it('run the tests', () => {}); | |
| }); | |
| describe('add function', () => { | |
| // afterAll(() => { | |
| // console.log('after all ran'); | |
| // }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules | |
| .DS_Store | |
| .vscode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const mongoose = require('mongoose'); | |
| const bcrypt = require('bcrypt'); | |
| const userSchema = new mongoose.Schema({ | |
| username: { | |
| type: String, | |
| required: true, | |
| unique: true, | |
| lowercase: true, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const mongoose = require('mongoose'); | |
| const bcrypt = require('bcrypt'); //< =========== | |
| const userSchema = new mongoose.Schema({ | |
| username: { | |
| type: String, | |
| required: true, | |
| unique: true, | |
| lowercase: true, // Kyle => kyle | |
| }, |
