-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196 from GSA/unit_test_updates
Unit test updates
- Loading branch information
Showing
11 changed files
with
381 additions
and
226 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// const db = require('../models/index') | ||
// const {getConfig} = require('../config/configuration') | ||
const {cleanAwardNotices} = require('../cron/noticeAwardCleanup') | ||
const db = require('../models/index'); | ||
const { getConfig } = require('../config/configuration'); | ||
const { cleanAwardNotices } = require('../cron/noticeAwardCleanup'); | ||
|
||
describe('Cron tests', () => { | ||
|
||
// Because the logger is in a different transaction space than Sequelize, I haven't figured out how to make a | ||
// reliable unit test for this. | ||
describe.skip('Cron tests', () => { | ||
// Because the logger is in a different transaction space than Sequelize, | ||
// we haven't figured out how to make a reliable unit test for this. | ||
test('Test award notice cleanup cron', async () => { | ||
const count_cleaned = await cleanAwardNotices(); | ||
expect (typeof(count_cleaned)).toBe('number') | ||
}, 100000) | ||
}) | ||
expect(typeof(count_cleaned)).toBe('number'); | ||
}, 100000);}) |
Oops, something went wrong.