build(docs-infra): upgrade jasmine-/karma-related dependencies (#31527)
Note: `jasmine-ts` is intentionally held back at 0.2.1, because of a bug in 0.3.0: svi3c/jasmine-ts#33 PR Close #31527
This commit is contained in:
parent
518bca0841
commit
b66d82e308
|
@ -128,19 +128,19 @@
|
||||||
"html": "^1.0.0",
|
"html": "^1.0.0",
|
||||||
"ignore": "^3.3.3",
|
"ignore": "^3.3.3",
|
||||||
"image-size": "^0.5.1",
|
"image-size": "^0.5.1",
|
||||||
"jasmine": "^2.6.0",
|
"jasmine": "^3.4.0",
|
||||||
"jasmine-core": "^2.8.0",
|
"jasmine-core": "^3.4.0",
|
||||||
"jasmine-spec-reporter": "^4.1.0",
|
"jasmine-spec-reporter": "^4.2.1",
|
||||||
"jasmine-ts": "^0.2.1",
|
"jasmine-ts": "^0.2.1",
|
||||||
"jsdom": "^9.12.0",
|
"jsdom": "^9.12.0",
|
||||||
"json-schema-traverse": "^0.4.1",
|
"json-schema-traverse": "^0.4.1",
|
||||||
"json5": "^1.0.1",
|
"json5": "^1.0.1",
|
||||||
"karma": "^1.7.0",
|
"karma": "^4.1.0",
|
||||||
"karma-chrome-launcher": "^2.1.1",
|
"karma-chrome-launcher": "^2.2.0",
|
||||||
"karma-cli": "^1.0.1",
|
"karma-cli": "^2.0.0",
|
||||||
"karma-coverage-istanbul-reporter": "^1.3.0",
|
"karma-coverage-istanbul-reporter": "^2.0.5",
|
||||||
"karma-jasmine": "^1.1.0",
|
"karma-jasmine": "^2.0.1",
|
||||||
"karma-jasmine-html-reporter": "^0.2.2",
|
"karma-jasmine-html-reporter": "^1.4.2",
|
||||||
"light-server": "^2.6.2",
|
"light-server": "^2.6.2",
|
||||||
"lighthouse": "^5.1.0",
|
"lighthouse": "^5.1.0",
|
||||||
"lighthouse-logger": "^1.2.0",
|
"lighthouse-logger": "^1.2.0",
|
||||||
|
|
|
@ -40,6 +40,7 @@ describe('AnnouncementBarComponent', () => {
|
||||||
it('should make a single request to the server', () => {
|
it('should make a single request to the server', () => {
|
||||||
component.ngOnInit();
|
component.ngOnInit();
|
||||||
httpMock.expectOne('generated/announcements.json');
|
httpMock.expectOne('generated/announcements.json');
|
||||||
|
expect().nothing(); // Prevent jasmine from complaining about no expectations.
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set the announcement to the first "live" one in the list loaded from `announcements.json`', () => {
|
it('should set the announcement to the first "live" one in the list loaded from `announcements.json`', () => {
|
||||||
|
|
|
@ -29,6 +29,7 @@ describe('ApiService', () => {
|
||||||
|
|
||||||
it('should not immediately connect to the server', () => {
|
it('should not immediately connect to the server', () => {
|
||||||
httpMock.expectNone({});
|
httpMock.expectNone({});
|
||||||
|
expect().nothing(); // Prevent jasmine from complaining about no expectations.
|
||||||
});
|
});
|
||||||
|
|
||||||
it('subscribers should be completed/unsubscribed when service destroyed', () => {
|
it('subscribers should be completed/unsubscribed when service destroyed', () => {
|
||||||
|
@ -91,6 +92,7 @@ describe('ApiService', () => {
|
||||||
it('should connect to the server w/ expected URL', () => {
|
it('should connect to the server w/ expected URL', () => {
|
||||||
service.fetchSections();
|
service.fetchSections();
|
||||||
httpMock.expectOne('generated/docs/api/api-list.json');
|
httpMock.expectOne('generated/docs/api/api-list.json');
|
||||||
|
expect().nothing(); // Prevent jasmine from complaining about no expectations.
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should refresh the #sections observable w/ new content on second call', () => {
|
it('should refresh the #sections observable w/ new content on second call', () => {
|
||||||
|
|
|
@ -47,6 +47,7 @@ describe('DocumentService', () => {
|
||||||
docService.currentDocument.subscribe();
|
docService.currentDocument.subscribe();
|
||||||
|
|
||||||
httpMock.expectOne(CONTENT_URL_PREFIX + 'initial/doc.json');
|
httpMock.expectOne(CONTENT_URL_PREFIX + 'initial/doc.json');
|
||||||
|
expect().nothing(); // Prevent jasmine from complaining about no expectations.
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should emit a document each time the location changes', () => {
|
it('should emit a document each time the location changes', () => {
|
||||||
|
@ -185,6 +186,7 @@ describe('DocumentService', () => {
|
||||||
docService.currentDocument.subscribe();
|
docService.currentDocument.subscribe();
|
||||||
|
|
||||||
httpMock.expectOne(CONTENT_URL_PREFIX + 'index.json');
|
httpMock.expectOne(CONTENT_URL_PREFIX + 'index.json');
|
||||||
|
expect().nothing(); // Prevent jasmine from complaining about no expectations.
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should map the "folder" locations to the correct document request', () => {
|
it('should map the "folder" locations to the correct document request', () => {
|
||||||
|
@ -192,6 +194,7 @@ describe('DocumentService', () => {
|
||||||
docService.currentDocument.subscribe();
|
docService.currentDocument.subscribe();
|
||||||
|
|
||||||
httpMock.expectOne(CONTENT_URL_PREFIX + 'guide.json');
|
httpMock.expectOne(CONTENT_URL_PREFIX + 'guide.json');
|
||||||
|
expect().nothing(); // Prevent jasmine from complaining about no expectations.
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
1058
aio/yarn.lock
1058
aio/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue