Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 2974e98

Browse files
fix(templates): Fix failing default tests in Angular (#138)
* fix(templates): Fix failing default tests in Angular * test(templates): Update snapshots
1 parent 3721986 commit 2974e98

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

scripts/__snapshots__/e2e-templates.test.js.snap

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,15 +359,21 @@ exports[`Templates Angular InstantSearch File content: src/app/app.component.htm
359359
360360
exports[`Templates Angular InstantSearch File content: src/app/app.component.spec.ts 1`] = `
361361
"import { TestBed, async } from '@angular/core/testing';
362+
import { NgAisModule } from 'angular-instantsearch';
362363
import { AppComponent } from './app.component';
364+
363365
describe('AppComponent', () => {
364366
beforeEach(async(() => {
365367
TestBed.configureTestingModule({
366368
declarations: [
367369
AppComponent
368370
],
371+
imports: [
372+
NgAisModule.forRoot(),
373+
],
369374
}).compileComponents();
370375
}));
376+
371377
it('should create the app', async(() => {
372378
const fixture = TestBed.createComponent(AppComponent);
373379
const app = fixture.debugElement.componentInstance;
@@ -378,7 +384,7 @@ describe('AppComponent', () => {
378384
379385
exports[`Templates Angular InstantSearch File content: src/app/app.component.ts 1`] = `
380386
"import { Component } from '@angular/core';
381-
import * as algoliasearch from \\"algoliasearch\\";
387+
import * as algoliasearch from 'algoliasearch';
382388
383389
@Component({
384390
selector: 'app-root',

src/templates/Angular InstantSearch/src/app/app.component.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
import { TestBed, async } from '@angular/core/testing';
2+
import { NgAisModule } from 'angular-instantsearch';
23
import { AppComponent } from './app.component';
4+
35
describe('AppComponent', () => {
46
beforeEach(async(() => {
57
TestBed.configureTestingModule({
68
declarations: [
79
AppComponent
810
],
11+
imports: [
12+
NgAisModule.forRoot(),
13+
],
914
}).compileComponents();
1015
}));
16+
1117
it('should create the app', async(() => {
1218
const fixture = TestBed.createComponent(AppComponent);
1319
const app = fixture.debugElement.componentInstance;

0 commit comments

Comments
 (0)