Open JuergenSimon opened 6 years ago
Please, ensure your title is less than 63 characters long and starts with a capital letter.
iOS, Android
CLI: (run tns --version to fetch it) 3.4.0
tns --version
Cross-platform modules: (check the 'version' attribute in the node_modules/tns-core-modules/package.json file in your project) 3.3.0
node_modules/tns-core-modules/package.json
Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project) 3.0.0
"tns-android"
"tns-ios"
package.json
error.service.test.ts
'use strict'; import {ErrorService} from '../services/error.service'; import {inject} from "@angular/core/testing"; declare let assert: Chai.AssertStatic; describe("ErrorService tests", () => { let service = null; beforeEach((done) => { inject([ErrorService], (injectService: ErrorService) => { service = injectService; done(); }); }); it("Service exists", (done) => { assert.exists(service); done(); }); });
error.service.ts
import { Injectable } from "@angular/core"; import { TranslateService } from "ng2-translate"; @Injectable() export class ErrorService { constructor(private i18n: TranslateService) { } }
Was a fix ever found? I'm running into this issue myself when importing TestBed
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital letter.
Which platform(s) does your issue occur on?
iOS, Android
Please provide the following version numbers that your issue occurs with:
CLI: (run
tns --version
to fetch it) 3.4.0Cross-platform modules: (check the 'version' attribute in the
node_modules/tns-core-modules/package.json
file in your project) 3.3.0Runtime(s): (look for the
"tns-android"
and"tns-ios"
properties in thepackage.json
file of your project) 3.0.0Please tell us how to recreate the issue in as much detail as possible.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
error.service.test.ts
error.service.ts