Skip to content

Commit 75f8758

Browse files
authored
Merge pull request #133 from RGunning/patch-1
fix(snippet): fix t-component-sync snippet
2 parents f5946be + f0ba8ab commit 75f8758

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

snippets/typescript.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,6 @@
14601460
"body": [
14611461
"import { ComponentFixture, TestBed } from '@angular/core/testing';",
14621462
"import { ${Name}Component } from './${file}.component';",
1463-
"import { Store } from '@ngrx/store';",
14641463
"import { NO_ERRORS_SCHEMA } from '@angular/core';",
14651464
"",
14661465
"describe('${Name}Component', () => {",
@@ -1470,7 +1469,7 @@
14701469
"\tbeforeEach(() => {",
14711470
"\t\tTestBed.configureTestingModule({",
14721471
"\t\t\tdeclarations: [${Name}Component],",
1473-
"\t\t\tproviders: [",
1472+
"\t\t\imports: [",
14741473
"\t\t\t],",
14751474
"\t\t\tproviders: [",
14761475
"\t\t\t],",
@@ -1481,7 +1480,7 @@
14811480
"\t\tcomponent = fixture.componentInstance;",
14821481
"\t});",
14831482
"",
1484-
"\tdescribe('constructor, () => {",
1483+
"\tdescribe('constructor', () => {",
14851484
"\t\tit('should create instance', () => {",
14861485
"\t\t\texpect(component).toBeDefined();",
14871486
"\t\t});",

0 commit comments

Comments
 (0)