Skip to content
Permalink
Browse files
Cleaned Up Code
  • Loading branch information
aa7401 committed Nov 23, 2019
1 parent 4737d1c commit 18a71519564acd13dfb2fcdb6d26de49996b9eb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
@@ -4,7 +4,7 @@ module.exports = {
displayName: 'test',
verbose: true,
collectCoverage: true,
"preset": 'jest-puppeteer',
'preset': 'jest-puppeteer',
coverageThreshold: {
global: {
branches: 0,
@@ -3,7 +3,7 @@

const bcrypt = require('bcrypt-promise')
// const fs = require('fs-extra')
const mime = require('mime-types')
// const mime = require('mime-types')
const sqlite = require('sqlite-async')
const saltRounds = 10

@@ -35,12 +35,12 @@ module.exports = class User {
}
}

async uploadPicture(path, mimeType) {
const extension = mime.extension(mimeType)
console.log(`path: ${path}`)
console.log(`extension: ${extension}`)
//await fs.copy(path, `public/avatars/${username}.${fileExtension}`)
}
// async uploadPicture(path, mimeType) {
// const extension = mime.extension(mimeType)
// console.log(`path: ${path}`)
// console.log(`extension: ${extension}`)
// //await fs.copy(path, `public/avatars/${username}.${fileExtension}`)
// }

async login(username, password) {
try {
@@ -56,7 +56,7 @@ module.exports = class User {
throw err
}
}

async tearDown() {
await this.db.close()
}

0 comments on commit 18a7151

Please sign in to comment.