Skip to content

Commit

Permalink
Summary
Browse files Browse the repository at this point in the history
  • Loading branch information
dimnov committed Aug 13, 2023
1 parent a5d1f80 commit 270ab78
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ecommerce-project": {
"angular-project": {
"projectType": "application",
"schematics": {},
"root": "",
Expand All @@ -13,7 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/ecommerce-project/",
"outputPath": "dist/angular-project/",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": ["zone.js"],
Expand Down Expand Up @@ -62,18 +62,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "ecommerce-project:build:production"
"browserTarget": "angular-project:build:production"
},
"development": {
"browserTarget": "ecommerce-project:build:development"
"browserTarget": "angular-project:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ecommerce-project:build"
"browserTarget": "angular-project:build"
}
},
"test": {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<title>Book Store</title>
<base href="/ecommerce-project/">
<base href="/angular-project/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="preconnect" href="https://fonts.gstatic.com">
Expand Down
2 changes: 1 addition & 1 deletion docs/runtime.a41526416102a5fc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ecommerce-project",
"name": "angular-project",
"version": "0.0.0",
"scripts": {
"ng": "ng",
Expand Down
6 changes: 3 additions & 3 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
});

it(`should have as title 'ecommerce-project'`, () => {
it(`should have as title 'angular-project'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('ecommerce-project');
expect(app.title).toEqual('angular-project');
});

it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('.content span')?.textContent).toContain('ecommerce-project app is running!');
expect(compiled.querySelector('.content span')?.textContent).toContain('angular-project app is running!');
});
});

0 comments on commit 270ab78

Please sign in to comment.