Skip to content

Conversation

@shadowgate15
Copy link
Member

All tests should now use supertest instead of Frisbee.

body: { email: 'test2@example.com', message: 'Test message!' }
});
const { web } = t.context;
await global.web.post('/en/support')
Copy link
Collaborator

Choose a reason for hiding this comment

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

☝️

@shadowgate15
Copy link
Member Author

Currently the snapshot tests fail every time because of the following error in the difference between snapshot and response.

        <script>␊
          window.USER = {
  -         id: "ifv1MFasogj7xXQlho60bD6F420IXPK3"
  +         id: "atZFh3BUUcJo4Fs8uWXmvHDKX_K7sk9l"
          };␊
        </script>

@shadowgate15 shadowgate15 force-pushed the tests branch 2 times, most recently from 97c4998 to fd5d6f5 Compare June 24, 2020 22:05
niftylettuce and others added 2 commits June 30, 2020 23:44
fix: fixed tests (temporarily removed mandarin/markdown until lad v2 released)
@codecov
Copy link

codecov bot commented Jul 1, 2020

Codecov Report

Merging #398 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #398   +/-   ##
=======================================
  Coverage   75.00%   75.00%           
=======================================
  Files           1        1           
  Lines          24       24           
=======================================
  Hits           18       18           
  Misses          6        6           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 778c082...6816355. Read the comment docs.

@@ -0,0 +1,51 @@
// Necessary utils for testing
// Librarires required for testing
const MongodbMemoryServer = require('mongodb-memory-server').default;
Copy link
Member

Choose a reason for hiding this comment

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

👍

test.before(before);
test.after.always(after);
test.beforeEach(beforeEach);
test.afterEach.always(afterEach);
Copy link
Member

Choose a reason for hiding this comment

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

👍

@shaunwarman shaunwarman merged commit d537462 into ladjs:master Jul 1, 2020
@shadowgate15 shadowgate15 deleted the tests branch July 1, 2020 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants