Skip to content

Commit

Permalink
Fixed various tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bchabrier committed Dec 13, 2021
1 parent 8829258 commit 081ede4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion test/test_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ describe('Module api', function () {
null,
'',
(req, resp) => { },
null
null,
true
);
done();
});
Expand Down
2 changes: 1 addition & 1 deletion test/test_load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Module load', function () {

}) : undefined;

function passToSandbox(done: MochaDone) {
function passToSandbox(done: Mocha.Done) {
grammar.__set__('sandbox.done', function <T>(old: T, val: T) {
done();
});
Expand Down
4 changes: 2 additions & 2 deletions test/test_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ type Source = ToMock.Source;

import * as assert from 'assert';
import { Source, Parameters, ConfigLoader, InitObject, GenericDevice } from '../core';
import { device } from '../core/devices/device';
import { device } from 'domoja-core/devices/device';

describe('Module sources', function () {
describe('class Source', function () {

class derivedSource extends Source {
createInstance(configLoader: ConfigLoader, path: string, initObject: InitObject): Source {
return new derivedSource(path);
return new derivedSource(path, {});
}
getParameters(): Parameters {
return {
Expand Down
3 changes: 2 additions & 1 deletion test/test_www.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ describe('Repository www', function () {
null,
'',
(req, resp) => { },
null
null,
true
);
done();
});
Expand Down

0 comments on commit 081ede4

Please sign in to comment.