Skip to content

Commit

Permalink
Update tests and add in script for code coverage that auto launches t…
Browse files Browse the repository at this point in the history
…he report
  • Loading branch information
RonanCodes committed Apr 30, 2024
1 parent d2798a5 commit af2b853
Show file tree
Hide file tree
Showing 10 changed files with 383 additions and 35 deletions.
247 changes: 247 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build:prod": "ng build --configuration=production --base-href=/chuck-norris-joke-generator/",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"ci:test": "ng test --browsers ChromeHeadless --watch=false"
"ci:test": "ng test --browsers ChromeHeadless --watch=false",
"coverage": "ng test --code-coverage --watch=false && http-server -c-1 -o -p 9875 ./coverage"
},
"private": true,
"dependencies": {
Expand All @@ -31,6 +32,7 @@
"@angular/cli": "^17.3.6",
"@angular/compiler-cli": "^17.3.0",
"@types/jasmine": "~5.1.0",
"http-server": "^14.1.1",
"jasmine-core": "~5.1.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,36 @@ describe('FavouritesStoreService', () => {
it('should be created', () => {
expect(service).toBeTruthy();
});

describe('#favourites$', () => {
it('should return an empty array', () => {
// Arrange
// Act
// Assert
});
});

describe('#favourites$', () => {
it('should return an empty array', () => {
// Arrange
// Act
// Assert
});
});

describe('#favourites$', () => {
it('should return an empty array', () => {
// Arrange
// Act
// Assert
});
});

describe('#favourites$', () => {
it('should return an empty array', () => {
// Arrange
// Act
// Assert
});
});
});
Loading

0 comments on commit af2b853

Please sign in to comment.