Skip to content

Unit test aren't working #1

@alexis35115

Description

@alexis35115

Am I the only one that the unit tests aren't working?

<?xml version="1.0"?>
<testsuite name="HeadlessChrome 78.0.3882 (Windows 10.0.0)" package="" timestamp="2019-09-26T15:13:25" id="0" hostname="PC-P-7330HK5" tests="5" errors="0" failures="4" time="0.681">
  <properties>
    <property name="browser.fullName" value="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/78.0.3882.0 Safari/537.36"/>
  </properties>
  <testcase name="AppComponent should render title" time="0.105" classname="HeadlessChrome_78_0_3882_(Windows_10_0_0).AppComponent">
    <failure type="">1. If 'nb-layout-header' is an Angular component, then verify that it is part of this module.
2. If 'nb-layout-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("&lt;nb-layout&gt;
  [ERROR -&gt;]&lt;nb-layout-header fixed&gt;
  &lt;!-- Insert header here --&gt;
  &lt;/nb-layout-header&gt;
1. If 'app-board' is an Angular component, then verify that it is part of this module.
2. If 'app-board' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
  &lt;nb-layout-column&gt;
    [ERROR -&gt;]&lt;app-board&gt;&lt;/app-board&gt;
    
    &lt;router-outlet&gt;&lt;/router-outlet&gt;
error properties: Object({ ngSyntaxError: true, ngParseErrors: [ 'nb-layout-header' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@2:2, 'app-board' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@8:4, 'nb-layout-column' is not a known element:
1. If 'nb-layout-column' is an Angular compon ...
    at &lt;Jasmine&gt;
    at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
    at TemplateParser.parse (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:11388:1)
    at JitCompiler._parseTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25961:1)
    at JitCompiler._compileTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25949:61)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1
    at &lt;Jasmine&gt;
    at JitCompiler._compileComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25813:1
    at Object.then (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2166:27)
    at JitCompiler._compileModuleAndAllComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25811:1)
</failure>
    <failure type="">1. If 'nb-layout-header' is an Angular component, then verify that it is part of this module.
2. If 'nb-layout-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("&lt;nb-layout&gt;
  [ERROR -&gt;]&lt;nb-layout-header fixed&gt;
  &lt;!-- Insert header here --&gt;
  &lt;/nb-layout-header&gt;
1. If 'app-board' is an Angular component, then verify that it is part of this module.
2. If 'app-board' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
  &lt;nb-layout-column&gt;
    [ERROR -&gt;]&lt;app-board&gt;&lt;/app-board&gt;
    
    &lt;router-outlet&gt;&lt;/router-outlet&gt;
error properties: Object({ ngSyntaxError: true, ngParseErrors: [ 'nb-layout-header' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@2:2, 'app-board' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@8:4, 'nb-layout-column' is not a known element:
1. If 'nb-layout-column' is an Angular compon ...
    at &lt;Jasmine&gt;
    at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
    at TemplateParser.parse (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:11388:1)
    at JitCompiler._parseTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25961:1)
    at JitCompiler._compileTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25949:61)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1
    at &lt;Jasmine&gt;
    at JitCompiler._compileComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25813:1
    at Object.then (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2166:27)
    at JitCompiler._compileModuleAndAllComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25811:1)
</failure>
  </testcase>
  <testcase name="AppComponent should create the app" time="0.074" classname="HeadlessChrome_78_0_3882_(Windows_10_0_0).AppComponent">
    <failure type="">1. If 'nb-layout-header' is an Angular component, then verify that it is part of this module.
2. If 'nb-layout-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("&lt;nb-layout&gt;
  [ERROR -&gt;]&lt;nb-layout-header fixed&gt;
  &lt;!-- Insert header here --&gt;
  &lt;/nb-layout-header&gt;
1. If 'app-board' is an Angular component, then verify that it is part of this module.
2. If 'app-board' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
  &lt;nb-layout-column&gt;
    [ERROR -&gt;]&lt;app-board&gt;&lt;/app-board&gt;
    
    &lt;router-outlet&gt;&lt;/router-outlet&gt;
error properties: Object({ ngSyntaxError: true, ngParseErrors: [ 'nb-layout-header' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@2:2, 'app-board' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@8:4, 'nb-layout-column' is not a known element:
1. If 'nb-layout-column' is an Angular compon ...
    at &lt;Jasmine&gt;
    at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
    at TemplateParser.parse (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:11388:1)
    at JitCompiler._parseTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25961:1)
    at JitCompiler._compileTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25949:61)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1
    at &lt;Jasmine&gt;
    at JitCompiler._compileComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25813:1
    at Object.then (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2166:27)
    at JitCompiler._compileModuleAndAllComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25811:1)
</failure>
    <failure type="">1. If 'nb-layout-header' is an Angular component, then verify that it is part of this module.
2. If 'nb-layout-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("&lt;nb-layout&gt;
  [ERROR -&gt;]&lt;nb-layout-header fixed&gt;
  &lt;!-- Insert header here --&gt;
  &lt;/nb-layout-header&gt;
1. If 'app-board' is an Angular component, then verify that it is part of this module.
2. If 'app-board' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
  &lt;nb-layout-column&gt;
    [ERROR -&gt;]&lt;app-board&gt;&lt;/app-board&gt;
    
    &lt;router-outlet&gt;&lt;/router-outlet&gt;
error properties: Object({ ngSyntaxError: true, ngParseErrors: [ 'nb-layout-header' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@2:2, 'app-board' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@8:4, 'nb-layout-column' is not a known element:
1. If 'nb-layout-column' is an Angular compon ...
    at &lt;Jasmine&gt;
    at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
    at TemplateParser.parse (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:11388:1)
    at JitCompiler._parseTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25961:1)
    at JitCompiler._compileTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25949:61)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1
    at &lt;Jasmine&gt;
    at JitCompiler._compileComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25813:1
    at Object.then (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2166:27)
    at JitCompiler._compileModuleAndAllComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25811:1)
</failure>
  </testcase>
  <testcase name="AppComponent should have as title 'myapp'" time="0.066" classname="HeadlessChrome_78_0_3882_(Windows_10_0_0).AppComponent">
    <failure type="">1. If 'nb-layout-header' is an Angular component, then verify that it is part of this module.
2. If 'nb-layout-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("&lt;nb-layout&gt;
  [ERROR -&gt;]&lt;nb-layout-header fixed&gt;
  &lt;!-- Insert header here --&gt;
  &lt;/nb-layout-header&gt;
1. If 'app-board' is an Angular component, then verify that it is part of this module.
2. If 'app-board' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
  &lt;nb-layout-column&gt;
    [ERROR -&gt;]&lt;app-board&gt;&lt;/app-board&gt;
    
    &lt;router-outlet&gt;&lt;/router-outlet&gt;
error properties: Object({ ngSyntaxError: true, ngParseErrors: [ 'nb-layout-header' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@2:2, 'app-board' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@8:4, 'nb-layout-column' is not a known element:
1. If 'nb-layout-column' is an Angular compon ...
    at &lt;Jasmine&gt;
    at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
    at TemplateParser.parse (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:11388:1)
    at JitCompiler._parseTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25961:1)
    at JitCompiler._compileTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25949:61)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1
    at &lt;Jasmine&gt;
    at JitCompiler._compileComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25813:1
    at Object.then (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2166:27)
    at JitCompiler._compileModuleAndAllComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25811:1)
</failure>
    <failure type="">1. If 'nb-layout-header' is an Angular component, then verify that it is part of this module.
2. If 'nb-layout-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("&lt;nb-layout&gt;
  [ERROR -&gt;]&lt;nb-layout-header fixed&gt;
  &lt;!-- Insert header here --&gt;
  &lt;/nb-layout-header&gt;
1. If 'app-board' is an Angular component, then verify that it is part of this module.
2. If 'app-board' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
  &lt;nb-layout-column&gt;
    [ERROR -&gt;]&lt;app-board&gt;&lt;/app-board&gt;
    
    &lt;router-outlet&gt;&lt;/router-outlet&gt;
error properties: Object({ ngSyntaxError: true, ngParseErrors: [ 'nb-layout-header' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@2:2, 'app-board' is not a known element:
"): ng:///DynamicTestModule/AppComponent.html@8:4, 'nb-layout-column' is not a known element:
1. If 'nb-layout-column' is an Angular compon ...
    at &lt;Jasmine&gt;
    at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
    at TemplateParser.parse (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:11388:1)
    at JitCompiler._parseTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25961:1)
    at JitCompiler._compileTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25949:61)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1
    at &lt;Jasmine&gt;
    at JitCompiler._compileComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25813:1
    at Object.then (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2166:27)
    at JitCompiler._compileModuleAndAllComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25811:1)
</failure>
  </testcase>
  <testcase name="BoardComponent should create" time="0.34" classname="HeadlessChrome_78_0_3882_(Windows_10_0_0).BoardComponent">
    <failure type="">1. If 'app-square' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'app-square' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
    &lt;app-square 
        *ngFor="let val of squares; let i = index" 
        [ERROR -&gt;][value]="val"
        (click)="makeMove(i)"&gt; 
1. If 'app-square' is an Angular component, then verify that it is part of this module.
2. If 'app-square' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
&lt;main&gt;
    [ERROR -&gt;]&lt;app-square 
error properties: Object({ ngSyntaxError: true, ngParseErrors: [ Can't bind to 'value' since it isn't a known property of 'app-square'.
"): ng:///DynamicTestModule/BoardComponent.html@13:8, 'app-square' is not a known element:
        *ngFor="let val of squa ...
    at &lt;Jasmine&gt;
    at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
    at TemplateParser.parse (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:11388:1)
    at JitCompiler._parseTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25961:1)
    at JitCompiler._compileTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25949:61)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1
    at &lt;Jasmine&gt;
    at JitCompiler._compileComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25813:1
    at Object.then (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2166:27)
    at JitCompiler._compileModuleAndAllComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25811:1)
</failure>
    <failure type="">1. If 'app-square' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'app-square' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
    &lt;app-square 
        *ngFor="let val of squares; let i = index" 
        [ERROR -&gt;][value]="val"
        (click)="makeMove(i)"&gt; 
1. If 'app-square' is an Angular component, then verify that it is part of this module.
2. If 'app-square' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
&lt;main&gt;
    [ERROR -&gt;]&lt;app-square 
error properties: Object({ ngSyntaxError: true, ngParseErrors: [ Can't bind to 'value' since it isn't a known property of 'app-square'.
"): ng:///DynamicTestModule/BoardComponent.html@13:8, 'app-square' is not a known element:
        *ngFor="let val of squa ...
    at &lt;Jasmine&gt;
    at syntaxError (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2175:1)
    at TemplateParser.parse (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:11388:1)
    at JitCompiler._parseTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25961:1)
    at JitCompiler._compileTemplate (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25949:61)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1
    at &lt;Jasmine&gt;
    at JitCompiler._compileComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25893:1)
    at http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25813:1
    at Object.then (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:2166:27)
    at JitCompiler._compileModuleAndAllComponents (http://localhost:9876/_karma_webpack_/node_modules/@angular/compiler/fesm2015/compiler.js:25811:1)
</failure>
    <failure type="">Error: Expected undefined to be truthy.
    at &lt;Jasmine&gt;
    at UserContext.&lt;anonymous&gt; (http://localhost:9876/_karma_webpack_/src/app/board/board.component.spec.ts:23:23)
    at ZoneDelegate.invoke (http://localhost:9876/_karma_webpack_/node_modules/zone.js/dist/zone-evergreen.js:359:1)
    at ProxyZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.ProxyZoneSpec.onInvoke (http://localhost:9876/_karma_webpack_/node_modules/zone.js/dist/zone-testing.js:308:1)
</failure>
  </testcase>
  <testcase name="SquareComponent should create" time="0.096" classname="HeadlessChrome_78_0_3882_(Windows_10_0_0).SquareComponent"/>
  <system-out>
    <![CDATA[
]]>
  </system-out>
  <system-err/>
</testsuite>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions