Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Mar 11, 2022
1 parent 68a4ff3 commit cea8247
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 218 deletions.
215 changes: 0 additions & 215 deletions __tests__/api-tests/stakeholder-api.spec.js

This file was deleted.

9 changes: 8 additions & 1 deletion database/seeds/11_story_stakeholder.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { v4: uuid } = require('uuid');

const stakeholderOne = Object.freeze({
id: uuid(),
Expand Down Expand Up @@ -43,9 +44,15 @@ const stakeholderTwo = Object.freeze({
organization_id: 5000001,
});

exports.seed = async function (knex) {
const seed = async function (knex) {

await knex('stakeholder').insert([stakeholderOne, stakeholderTwo]);

}

module.exports = {
seed,
stakeholderOne,
stakeholderTwo
}

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"test": "npm run test-unit-ci; npm run test-integration-ci;npm run test-repository-ci",
"test-unit-ci": "NODE_ENV=test mocha -r dotenv/config --exit ./server/models/**/*.spec.js ./server/**/*.spec.js",
"test-repository-ci": "NODE_ENV=test mocha -r dotenv/config --exit ./server/repositories/**/*.spec.js",
"server-test": "DEBUG=express:* NODE_LOG_LEVEL=debug nodemon './__tests__/serverTest.js'",
"test-integration-ci": "NODE_ENV=test mocha -r dotenv/config --exit --timeout 20000 './__tests__/api-tests'",
"test-integration-ci": "NODE_ENV=test mocha -r dotenv/config --exit --timeout 20000 './api-tests'",
"server": "nodemon server/server.js",
"test-seedDB": "NODE_ENV=test mocha -r dotenv/config dotenv_config_path=.env.test --timeout 10000 './**/*.spec.js'",
"test-watch": "NODE_ENV=test NODE_LOG_LEVEL=info mocha -r dotenv/config dotenv_config_path=.env.test --timeout 10000 -w -b --ignore './server/repositories/**/*.spec.js' './server/setup.js' './server/**/*.spec.js' './__tests__/seed-spec-example.spec.js' './__tests__/supertest-example.spec.js'",
Expand Down

0 comments on commit cea8247

Please sign in to comment.