Skip to content

Commit

Permalink
fix createChaos tests type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiatt committed Jul 19, 2019
1 parent 886e913 commit 89e9fb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/types.ts
@@ -1 +1,2 @@
export type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
// adding string as an option for now in order to make createChaos tests pass
export type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | string;
2 changes: 1 addition & 1 deletion test/createChaos.test.tsx
@@ -1,7 +1,7 @@
import expect from 'expect';
import { createChaos, convertChaosLevel } from '../src/utils/createChaos';

const mockMath = val => {
const mockMath = (val: number) => {
let mr = Math.random;
Math.random = () => val;
return () => {
Expand Down

0 comments on commit 89e9fb0

Please sign in to comment.