Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Update unittests #1784

Merged
merged 34 commits into from
Mar 29, 2022
Merged

Update unittests #1784

merged 34 commits into from
Mar 29, 2022

Conversation

queengooborg
Copy link
Collaborator

This PR updates the unittests to add more coverage, as well as properly ignore blocks of code that are too challenging/impossible/not worthwhile to test.

@foolip
Copy link
Owner

foolip commented Feb 17, 2022

@queengooborg sorry I neglected this. Can you rebase?

@queengooborg
Copy link
Collaborator Author

queengooborg commented Feb 17, 2022

Actually, can you help with that? I can't modify v1 package locks now due to a bug with NPM v6... Updating now that we've migrated to NodeJS v16!

@@ -249,6 +249,11 @@ describe('/tests/', () => {
assert.equal(res.status, 200);
});

it('get all tests, ignore CSS', async () => {
const res = await agent.get('/tests/?ignore=css');
assert.equal(res.status, 200);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should something be asserted here that's different from the previous step? As it is, this test would pass even if the ignore parameter is unused.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably also check to make sure we're loading the correct tests as well in the previous two steps. I'm not sure how to do it at this time though, so I've added some TODO comments to remind us later.

unittest/unit/build.js Show resolved Hide resolved
unittest/unit/build.js Show resolved Hide resolved
@foolip foolip merged commit 0ec1a8d into main Mar 29, 2022
@foolip foolip deleted the unittest branch March 29, 2022 10:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants