Skip to content

Commit 638672e

Browse files
chore(test): Update tests to account for new pick and omit signatures
1 parent 5092493 commit 638672e

File tree

4 files changed

+239
-295
lines changed

4 files changed

+239
-295
lines changed

test/resolveSpec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ beforeEach(function () {
6363
statesTree = loadStates({}, states, '');
6464

6565
function loadStates(parent, state, name) {
66-
var thisState = pick.apply(null, [state].concat(stateProps));
67-
var substates = omit.apply(null, [state].concat(stateProps));
66+
var thisState: any = pick(state, stateProps);
67+
var substates: any = omit(state, stateProps);
6868

6969
thisState.template = thisState.template || "empty";
7070
thisState.name = name;

test/urlMatcherFactorySpec.js

100755100644
File mode changed.

test/util/testUtils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ let stateProps = ["resolve", "resolvePolicy", "data", "template", "templateUrl",
55
export function tree2Array(tree, inheritName) {
66

77
function processState(parent, state, name) {
8-
var substates = omit.apply(null, [state].concat(stateProps));
9-
var thisState = pick.apply(null, [state].concat(stateProps));
8+
var substates: any = omit(state, stateProps);
9+
var thisState: any = pick(state, stateProps);
1010
thisState.name = name;
1111
if (!inheritName) thisState.parent = parent;
1212

0 commit comments

Comments
 (0)