fixed linting issue

This commit is contained in:
Chris Troutner
2022-09-08 08:58:39 -07:00
parent da637df44a
commit 448b028bb4
96 changed files with 2859 additions and 11578 deletions
+3 -4
View File
@@ -1,6 +1,5 @@
const mongoose = require('mongoose')
const config = require('../../config')
import mongoose from 'mongoose'
import config from '../../config/index.js'
const EMAIL = 'test@test.com'
const PASSWORD = 'pass'
@@ -34,6 +33,6 @@ async function addUser () {
}
addUser()
module.exports = {
export default {
addUser
}
+3 -3
View File
@@ -1,12 +1,12 @@
const mongoose = require('mongoose')
import mongoose from 'mongoose'
// Force test environment
// make sure environment variable is set before this file gets called.
// see test script in package.json.
// process.env.KOA_ENV = 'test'
const config = require('../../config')
import config from '../../config/index.js'
const User = require('../../src/models/users')
import User from '../../src/models/users/js'
async function deleteUsers () {
// Connect to the Mongo Database.
+3 -5
View File
@@ -1,8 +1,6 @@
const mongoose = require('mongoose')
const config = require('../../config')
const User = require('../../src/models/users')
import mongoose from 'mongoose'
import config from '../../config/index.js'
import User from '../../src/models/users.js'
async function getUsers () {
// Connect to the Mongo Database.
+2 -2
View File
@@ -4,11 +4,11 @@
'use strict'
const mongoose = require('mongoose')
import mongoose from 'mongoose'
import config from '../config/index.js'
// Force test environment
process.env.KOA_ENV = 'test'
const config = require('../config')
async function cleanDb () {
// Connect to the Mongo Database.