Skip to content

Commit

Permalink
chore(metrics): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik committed Mar 7, 2021
1 parent 45b7bbd commit ec95316
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"db:create": "sequelize db:create",
"db:setup": "sequelize db:drop; sequelize db:create; sequelize db:migrate",
"db:migrate": "sequelize db:migrate",
"test": "NODE_ENV=test npm run db:setup && jest test/api/*.js --runInBand --forceExit",
"test": "NODE_ENV=test npm run db:setup && jest test/**/*.js --runInBand --forceExit",
"open-coverage": "opn coverage/lcov-report/index.html",
"prepare": "husky install"
},
Expand Down
4 changes: 1 addition & 3 deletions test/api/metrics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ describe('Metrics requests', () => {
});

test('should return data correctly on /metrics', async () => {
const course = await generator.createCourse({});
const chapter = await generator.createChapter({ course });
await generator.createPage({ chapter });
await generator.createCourse();

const res = await request({
uri: '/metrics',
Expand Down

0 comments on commit ec95316

Please sign in to comment.