mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
build: fixes needed in google3
We have an older version of Jasmine that doesn't support generics in this spot
This commit is contained in:
parent
eec5262bbe
commit
773984dac3
@ -70,6 +70,7 @@ ts_library(
|
||||
"//packages/angular_devkit/core:node",
|
||||
"@rxjs",
|
||||
"@rxjs//operators",
|
||||
# @typings: node
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
import { normalize } from '@angular-devkit/core';
|
||||
import { Action, ActionList } from './action';
|
||||
|
||||
type ExpectedAction = jasmine.ObjectContaining<Action>;
|
||||
|
||||
describe('Action', () => {
|
||||
describe('optimize', () => {
|
||||
@ -87,7 +88,7 @@ describe('Action', () => {
|
||||
actions.optimize();
|
||||
expect(actions.length).toBe(1);
|
||||
expect(actions.get(0)).toEqual(
|
||||
jasmine.objectContaining<Action>({ kind: 'c', path: normalize('/test2') }),
|
||||
jasmine.objectContaining({ kind: 'c', path: normalize('/test2') }) as ExpectedAction,
|
||||
);
|
||||
});
|
||||
|
||||
@ -100,14 +101,12 @@ describe('Action', () => {
|
||||
|
||||
actions.optimize();
|
||||
expect(actions.length).toBe(2);
|
||||
expect(actions.get(0)).toEqual(
|
||||
jasmine.objectContaining<Action>({
|
||||
kind: 'r', path: normalize('/test'), to: normalize('/test2'),
|
||||
}),
|
||||
);
|
||||
expect(actions.get(1)).toEqual(
|
||||
jasmine.objectContaining<Action>({ kind: 'o', path: normalize('/test2') }),
|
||||
);
|
||||
expect(actions.get(0)).toEqual(jasmine.objectContaining({
|
||||
kind: 'r', path: normalize('/test'), to: normalize('/test2'),
|
||||
}) as ExpectedAction);
|
||||
expect(actions.get(1)).toEqual(jasmine.objectContaining({
|
||||
kind: 'o', path: normalize('/test2'),
|
||||
}) as ExpectedAction);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user