Skip to content

Commit

Permalink
chore(test): Update tests to account for new pick and omit signat…
Browse files Browse the repository at this point in the history
…ures
  • Loading branch information
christopherthielen committed Jan 31, 2017
1 parent 5092493 commit 638672e
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 295 deletions.
4 changes: 2 additions & 2 deletions test/resolveSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ beforeEach(function () {
statesTree = loadStates({}, states, '');

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

thisState.template = thisState.template || "empty";
thisState.name = name;
Expand Down
Empty file modified test/urlMatcherFactorySpec.js
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions test/util/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ let stateProps = ["resolve", "resolvePolicy", "data", "template", "templateUrl",
export function tree2Array(tree, inheritName) {

function processState(parent, state, name) {
var substates = omit.apply(null, [state].concat(stateProps));
var thisState = pick.apply(null, [state].concat(stateProps));
var substates: any = omit(state, stateProps);
var thisState: any = pick(state, stateProps);
thisState.name = name;
if (!inheritName) thisState.parent = parent;

Expand Down
Loading

0 comments on commit 638672e

Please sign in to comment.