Skip to content

Commit 87a9e97

Browse files
authored
Update for angular 14 (#5)
* update package dependencies * fix test
1 parent 0cf28eb commit 87a9e97

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
node-version: 14
1616
registry-url: https://registry.npmjs.org/
1717
- name: create angular cli project
18-
run: npx @angular/cli@13 new build --skip-tests --minimal --routing --skip-git --strict false --style scss
18+
run: npx @angular/cli@14 new build --skip-tests --minimal --routing --skip-git --strict false --style scss
1919
- name: set analytics off
2020
working-directory: build
2121
run: npm run ng analytics off -- --global

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Choose the version corresponding to your Angular version:
1919

2020
Angular | @themost/angular |
2121
--- | --- |
22+
14 | 14.x+
2223
13 | 13.x+
2324
12 | 12.x+
2425
11 | 11.x+

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@themost/angular",
3-
"version": "13.1.0",
3+
"version": "14.1.0",
44
"description": "MOST Web Framework client module for angular",
55
"scripts": {
66
},
77
"peerDependencies": {
8-
"@angular/common": "^13",
9-
"@angular/core": "^13",
10-
"@angular/platform-browser": "^13",
11-
"@angular/platform-browser-dynamic": "^13",
8+
"@angular/common": "^14",
9+
"@angular/core": "^14",
10+
"@angular/platform-browser": "^14",
11+
"@angular/platform-browser-dynamic": "^14",
1212
"@themost/client": "^2",
1313
"@themost/xml": "^2",
1414
"core-js": "^3.21.1",

src/auth/activated-user.service.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('ActivatedUserService', () => {
1313
}
1414
})
1515
],
16-
providers: [ActivatedUserService, ActivatedUserSnapshot]
16+
providers: [ActivatedUserService]
1717
}));
1818

1919
it('should be created', () => {
@@ -34,7 +34,6 @@ describe('ActivatedUserService', () => {
3434
activatedUserService.set({
3535
name: 'alexis.rees@exapmle.com'
3636
});
37-
const activatedUserSnapshot: ActivatedUserSnapshot = TestBed.get(ActivatedUserSnapshot);
38-
expect(activatedUserSnapshot.user).toBeTruthy();
37+
expect(activatedUserService.snapshot.user).toBeTruthy();
3938
});
4039
});

0 commit comments

Comments
 (0)