Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,242 changes: 0 additions & 1,242 deletions app/package-lock.json

Large diffs are not rendered by default.

62 changes: 0 additions & 62 deletions complete-application/documentation_snippets/test_1.js

This file was deleted.

36 changes: 0 additions & 36 deletions complete-application/documentation_snippets/test_2.js

This file was deleted.

12 changes: 0 additions & 12 deletions complete-application/documentation_snippets/test_3.js

This file was deleted.

16 changes: 0 additions & 16 deletions complete-application/documentation_snippets/test_4.js

This file was deleted.

26 changes: 0 additions & 26 deletions complete-application/documentation_snippets/test_5.js

This file was deleted.

10 changes: 6 additions & 4 deletions complete-application/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

169 changes: 0 additions & 169 deletions complete-application/test.js

This file was deleted.

21 changes: 21 additions & 0 deletions complete-application/test_1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const test = require("tape");
const { v4: uuidv4 } = require("uuid");
const {createRandomUser, deleteUser} = require("./userCreator.js");
const {login} = require("./userLogin");

const applicationId = "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e";
const fusionUrl = "http://localhost:9011";
const userPassword = "password";

test('test login returns JWT with "Goodbye World"', async function (t) {
t.plan(1);
const userId = uuidv4();
const email = await createRandomUser(userId, applicationId, fusionUrl, userPassword);
try {
const result = await login(email, applicationId, fusionUrl, userPassword);
t.ok(result.toLowerCase().includes("goodbye world"));
t.end();
} finally {
await deleteUser(userId, fusionUrl);
}
});
Loading