Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Apr 29, 2024
2 parents 3f2954e + 0585aca commit cf0339d
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 33 deletions.
2 changes: 2 additions & 0 deletions angular-standalone/base/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ yarn-error.log
/.angular
/.angular/cache
.sass-cache/
/.nx
/.nx/cache
/connect.lock
/coverage
/libpeerconnection.log
Expand Down
14 changes: 7 additions & 7 deletions angular-standalone/base/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { provideRouter } from '@angular/router';
import { AppComponent } from './app.component';

describe('AppComponent', () => {
it('should create the app', () => {
TestBed.overrideComponent(AppComponent, {
add: {
imports: [RouterTestingModule]
}
});
it('should create the app', async () => {
await TestBed.configureTestingModule({
imports: [AppComponent],
providers: [provideRouter([])]
}).compileComponents();

const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
Expand Down
11 changes: 5 additions & 6 deletions angular-standalone/official/list/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { provideRouter } from '@angular/router';

import { AppComponent } from './app.component';

describe('AppComponent', () => {

beforeEach(async () => {
TestBed.overrideComponent(AppComponent, {
add: {
imports: [RouterTestingModule]
}
});
await TestBed.configureTestingModule({
imports: [AppComponent],
providers: [provideRouter([])]
}).compileComponents();
});

it('should create the app', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { provideRouter } from '@angular/router';

import { AppComponent } from './app.component';

describe('AppComponent', () => {
beforeEach(async () => {
TestBed.overrideComponent(AppComponent, {
add: {
imports: [RouterTestingModule]
}
});
await TestBed.configureTestingModule({
imports: [AppComponent],
providers: [provideRouter([])]
}).compileComponents();
});

it('should create the app', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { provideRouter } from '@angular/router';

import { FolderPage } from './folder.page';

Expand All @@ -8,11 +8,10 @@ describe('FolderPage', () => {
let fixture: ComponentFixture<FolderPage>;

beforeEach(async () => {
TestBed.overrideComponent(FolderPage, {
add: {
imports: [RouterTestingModule]
}
});
await TestBed.configureTestingModule({
imports: [FolderPage],
providers: [provideRouter([])]
}).compileComponents();

fixture = TestBed.createComponent(FolderPage);
component = fixture.componentInstance;
Expand Down
11 changes: 5 additions & 6 deletions angular-standalone/official/tabs/src/app/tabs/tabs.page.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { provideRouter } from '@angular/router';

import { TabsPage } from './tabs.page';

Expand All @@ -8,11 +8,10 @@ describe('TabsPage', () => {
let fixture: ComponentFixture<TabsPage>;

beforeEach(async () => {
TestBed.overrideComponent(TabsPage, {
add: {
imports: [RouterTestingModule]
}
});
await TestBed.configureTestingModule({
imports: [TabsPage],
providers: [provideRouter([])]
}).compileComponents();
});

beforeEach(() => {
Expand Down
2 changes: 2 additions & 0 deletions angular/base/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ yarn-error.log
/.angular
/.angular/cache
.sass-cache/
/.nx
/.nx/cache
/connect.lock
/coverage
/libpeerconnection.log
Expand Down
4 changes: 2 additions & 2 deletions angular/official/sidemenu/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { TestBed } from '@angular/core/testing';

import { RouterTestingModule } from '@angular/router/testing';
import { RouterModule } from '@angular/router';

import { AppComponent } from './app.component';

Expand All @@ -13,7 +13,7 @@ describe('AppComponent', () => {
await TestBed.configureTestingModule({
declarations: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [RouterTestingModule.withRoutes([])],
imports: [RouterModule.forRoot([])],
}).compileComponents();
});

Expand Down
2 changes: 2 additions & 0 deletions react-vite/base/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
.env.development.local
.env.test.local
.env.production.local
/.nx
/.nx/cache
/.vscode/*
!/.vscode/extensions.json
.idea
Expand Down
2 changes: 2 additions & 0 deletions react/base/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
.env.development.local
.env.test.local
.env.production.local
/.nx
/.nx/cache
/.vscode/*
!/.vscode/extensions.json
.idea
Expand Down

0 comments on commit cf0339d

Please sign in to comment.