Skip to content

Commit

Permalink
chore(test): format test failure output more aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Sep 18, 2015
1 parent c48bf43 commit 1836d9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/schedulers/TestScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ export default class TestScheduler extends VirtualTimeScheduler {
}
}

static parseMarbles(marbles: string, values?: any, errorValue?: any) : ({ notification: Notification<any>, frame: number })[] {
static parseMarbles(marbles: string, values?: any, errorValue?: any) : ({ frame: number, notification: Notification<any> })[] {
let len = marbles.length;
let results: ({ notification: Notification<any>, frame: number })[] = [];
let results: ({ frame: number, notification: Notification<any> })[] = [];
let subIndex = marbles.indexOf('^');
let frameOffset = subIndex === -1 ? 0 : (subIndex * -10);
let getValue = typeof values !== 'object' ? (x) => x : (x) => values[x];
Expand Down Expand Up @@ -122,7 +122,7 @@ export default class TestScheduler extends VirtualTimeScheduler {
frame += frameOffset;

if (notification) {
results.push({ notification, frame: groupStart > -1 ? groupStart : frame });
results.push({ frame: groupStart > -1 ? groupStart : frame, notification });
}
}
return results;
Expand Down

0 comments on commit 1836d9e

Please sign in to comment.