Skip to content

Commit 25d3c6f

Browse files
committed
chore: fix unit tests
1 parent 9bc7e38 commit 25d3c6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/services/playground/preview-app-plugins-service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Device } from "nativescript-preview-sdk";
44
import { assert } from "chai";
55
import * as util from "util";
66
import { PluginComparisonMessages } from "../../../lib/services/livesync/playground/preview-app-constants";
7+
import { ErrorsStub } from "../../stubs";
78

89
let readJsonParams: string[] = [];
910
let warnParams: string[] = [];
@@ -43,6 +44,7 @@ function createTestInjector(localPlugins: IStringDictionary, options?: { isNativ
4344
trace: () => ({}),
4445
warn: (message: string) => warnParams.push(message)
4546
});
47+
injector.register("errors", ErrorsStub);
4648
injector.register("previewAppPluginsService", PreviewAppPluginsService);
4749
return injector;
4850
}

0 commit comments

Comments
 (0)