Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tysonrm committed May 25, 2022
1 parent e1ae51e commit 2283a95
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"GitHub.copilot"
]
}
20 changes: 20 additions & 0 deletions __test__/datasources/inherit.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"use strict";
exports.__esModule = true
var assert = require("assert");

import ModelFactory from '../../esm/domain/model-factory'

describe("datasource inheritance", function () {
describe("polymorph", function () {
it("dataSource.saveSync()", async function () {
/**@type {import("../../src/domain/datasource").default} */
const dsMemory = require('../../src/domain/datasource-factory').getDataSource("test", {adapter:'DataSourceMemory'})
/**@type {import("../../src/domain/datasource").default} */
const dsMongo = require('../../src/domain/datasource-factory').getDataSource("test", {adapter:'DataSourceMongoDb'})
dsMemory.saveSync(1, {a:1})
dsMongo.saveSync(1, {b:2})
console.log(dsMemory.findSync(1))
assert.strictEqual(updated.a, "b");
});
});
});
13 changes: 13 additions & 0 deletions __test__/template.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"use strict";

var assert = require("assert");


describe("testName", function () {
it("this test will pass", function () {
assert.strictEqual(1,1);
});
});



1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"ipfs": "^0.61.0",
"jwks-rsa": "2.0.5",
"mesh-link": "0.13.6",
"mocha-esm": "^1.1.1",
"mongodb": "4.3.1",
"multicast-dns": "7.2.4",
"nanoid": "3.2.0",
Expand Down

0 comments on commit 2283a95

Please sign in to comment.