Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor tests #251

Merged
merged 4 commits into from
Oct 7, 2023
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
2 changes: 0 additions & 2 deletions application/domain/chat.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
options: {},

async run(t) {
console.log(t);

await t.test('Get room with domain.chat.getRoom', async () => {
const name = 'example1';
const room = await domain.chat.getRoom(name);
Expand Down
16 changes: 16 additions & 0 deletions application/domain/tests/api.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
({
name: 'API test',

async run() {
const url = 'http://127.0.0.1:8001/api';
const metacom = metarhia.metacom.Metacom.create(url);
await metacom.load('auth', 'example');

const res = await metacom.api.auth.signin({
login: 'marcus',
password: 'marcus',
});
console.log({ res });
//node.assert.strictEqual(data.size, size, msg);
},
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
({
name: 'Static server test',
options: {},

async run(t) {
const tasks = [
Expand Down
Loading
Loading