Skip to content

Commit

Permalink
test: add service test
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamensuli committed Dec 26, 2023
1 parent f41a4ba commit bee4d3a
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/tests/Service.test.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,33 @@
import 'mocha';
//import assert from 'node:assert'
import assert from 'node:assert'
import Service from '../Service'


declare global {
interface NodeJSGlobal {
service: Service;
}
}
declare let global: NodeJS.Global & { service?: Service };


describe("NODEFONY Service", () => {

describe("namespace", () => {

before(() => {
global.service = new Service("test");
});
it("register", (done) => {
assert(Service);
assert(global.service instanceof Service);
done();
});

})





})

0 comments on commit bee4d3a

Please sign in to comment.