Skip to content

Commit 6335363

Browse files
author
Daniel Playfair Cal
committed
add assertion in test
1 parent a5eaefe commit 6335363

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/typescript-mock-data.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ it('should generate mock data for an input type containing a field with a oneOf
141141
});
142142

143143
expect(result).toBeDefined();
144-
144+
expect(result).toContain(
145+
`field: overrides && overrides.hasOwnProperty('field') ? overrides.field! : aOneOfInput(),`,
146+
);
145147
expect(result).toMatchSnapshot();
146148
});
147149

0 commit comments

Comments
 (0)