Skip to content

Commit

Permalink
Fix test bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Rocha committed Oct 8, 2019
1 parent a61c6ba commit 18111f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions test/mocks/models/default.entity.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,13 @@ export abstract class DefaultEntityMock {
duration: 10000
}

public static SLEEP_PATTERN_STAGES_SUMMARY_JSON: any = {
deep: DefaultEntityMock.SLEEP_PATTERN_SUMMARY_DATA,
light: DefaultEntityMock.SLEEP_PATTERN_SUMMARY_DATA,
rem: DefaultEntityMock.SLEEP_PATTERN_SUMMARY_DATA,
awake: DefaultEntityMock.SLEEP_PATTERN_SUMMARY_DATA
}

public static SLEEP_PATTERN_STAGES_SUMMARY: any = {
deep: DefaultEntityMock.SLEEP_PATTERN_SUMMARY_DATA,
light: DefaultEntityMock.SLEEP_PATTERN_SUMMARY_DATA,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/models/sleep.pattern.stages.summary.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('Models: SleepPatternStagesSummary', () => {
const model: SleepPatternStagesSummary = new SleepPatternStagesSummary()
.fromJSON(DefaultEntityMock.SLEEP_PATTERN_STAGES_SUMMARY)
const res: any = model.toJSON()
assert.deepEqual(res, DefaultEntityMock.SLEEP_PATTERN_STAGES_SUMMARY)
assert.deepEqual(res, DefaultEntityMock.SLEEP_PATTERN_STAGES_SUMMARY_JSON)
})
})
})
Expand Down

0 comments on commit 18111f4

Please sign in to comment.