From 5e368f5f83579eed5496ec287f187180def1d6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Mon, 16 Jul 2018 15:59:24 +0200 Subject: [PATCH 1/2] fix(templates): Fix default failing tests in Angular --- .../Angular InstantSearch/src/app/app.component.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/templates/Angular InstantSearch/src/app/app.component.spec.ts b/src/templates/Angular InstantSearch/src/app/app.component.spec.ts index 31b39079c..050eb379c 100644 --- a/src/templates/Angular InstantSearch/src/app/app.component.spec.ts +++ b/src/templates/Angular InstantSearch/src/app/app.component.spec.ts @@ -1,13 +1,19 @@ import { TestBed, async } from '@angular/core/testing'; +import { NgAisModule } from 'angular-instantsearch'; import { AppComponent } from './app.component'; + describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], + imports: [ + NgAisModule.forRoot(), + ], }).compileComponents(); })); + it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); const app = fixture.debugElement.componentInstance; From 6dd11ed1e518f481586bcecc894818005d8eb02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Mon, 16 Jul 2018 16:02:51 +0200 Subject: [PATCH 2/2] test(templates): Update snapshots --- scripts/__snapshots__/e2e-templates.test.js.snap | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/__snapshots__/e2e-templates.test.js.snap b/scripts/__snapshots__/e2e-templates.test.js.snap index 8a2073cce..05adc689d 100644 --- a/scripts/__snapshots__/e2e-templates.test.js.snap +++ b/scripts/__snapshots__/e2e-templates.test.js.snap @@ -359,15 +359,21 @@ exports[`Templates Angular InstantSearch File content: src/app/app.component.htm exports[`Templates Angular InstantSearch File content: src/app/app.component.spec.ts 1`] = ` "import { TestBed, async } from '@angular/core/testing'; +import { NgAisModule } from 'angular-instantsearch'; import { AppComponent } from './app.component'; + describe('AppComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ AppComponent ], + imports: [ + NgAisModule.forRoot(), + ], }).compileComponents(); })); + it('should create the app', async(() => { const fixture = TestBed.createComponent(AppComponent); const app = fixture.debugElement.componentInstance; @@ -378,7 +384,7 @@ describe('AppComponent', () => { exports[`Templates Angular InstantSearch File content: src/app/app.component.ts 1`] = ` "import { Component } from '@angular/core'; -import * as algoliasearch from \\"algoliasearch\\"; +import * as algoliasearch from 'algoliasearch'; @Component({ selector: 'app-root',