diff --git a/package.json b/package.json index df5ad7b9..353dc008 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d2-armor-picker", - "version": "2.9.6", + "version": "2.9.7", "scripts": { "ng": "ng", "config": "ts-node set-env.ts", @@ -11,7 +11,9 @@ "deploy-canary": "npm run config && ng deploy D2ArmorPicker --build-target D2ArmorPicker:build:canary --repo=https://github.com/Mijago/D2ArmorPicker-Canary.git --base-href=/ --cname=canary.d2armorpicker.com ", "deploy-nznaza": "npm run config && ng deploy D2ArmorPicker --build-target D2ArmorPicker:build:beta --no-silent --repo=https://github.com/nznaza/D2ArmorPicker.git --base-href=/D2ArmorPicker/ --cname=nznaza.github.io/D2ArmorPicker/", "watch": "npm run config && ng build --watch --configuration development", - "test": "ng test", + "test": "ng test", + "test:ci": "ng test --browsers=ChromeHeadlessCI --watch=false --code-coverage=false", + "test:coverage": "ng test --browsers=ChromeHeadlessCI --watch=false --code-coverage=true", "prepare": "husky install", "lint": "ng lint --fix --max-warnings=0", "format": "prettier . --write", diff --git a/set-env.ts b/set-env.ts index c10d7486..b3aa73ba 100644 --- a/set-env.ts +++ b/set-env.ts @@ -21,7 +21,7 @@ const production = process.env["PRODUCTION"] === "1"; const beta_branch = process.env["BETA"] === "1"; const canary_branch = process.env["CANARY"] === "1"; -const version = "2.9.6"; +const version = "2.9.7"; // Configure Angular `environment.ts` file path const targetPath = production diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 29fec726..4a238238 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -18,12 +18,20 @@ import { TestBed } from "@angular/core/testing"; import { AppComponent } from "./app.component"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; +import { HttpClientModule } from "@angular/common/http"; +import { LoggerTestingModule } from "ngx-logger/testing"; +import { CommonMaterialModule } from "./modules/common-material/common-material.module"; describe("AppComponent", () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [AppComponent], - imports: [BrowserAnimationsModule], + imports: [ + BrowserAnimationsModule, + HttpClientModule, + LoggerTestingModule, + CommonMaterialModule, + ], }).compileComponents(); }); diff --git a/src/app/components/authenticated-v2/results/expanded-result-content/expanded-result-content.component.html b/src/app/components/authenticated-v2/results/expanded-result-content/expanded-result-content.component.html index f6a81c4b..76111dbd 100644 --- a/src/app/components/authenticated-v2/results/expanded-result-content/expanded-result-content.component.html +++ b/src/app/components/authenticated-v2/results/expanded-result-content/expanded-result-content.component.html @@ -29,8 +29,10 @@ {{ ArmorStatNames[ArmorStat.StatWeapon] }} + Tier MW + @@ -94,6 +96,14 @@ + + + + + {{ i.tier }} + + + check_circle @@ -102,6 +112,14 @@ {{ i.masterworkLevel }} + + + + + + + +