(Type)
| 102 | }; |
| 103 | |
| 104 | const testFailure = function(Type) { |
| 105 | Type.constructor.parse = _.noop(); |
| 106 | |
| 107 | expect(() => { |
| 108 | current.refreshTypes(); |
| 109 | }).to.throw(`Parse function not supported for type ${Type.key} in dialect ${dialect}`); |
| 110 | |
| 111 | delete Type.constructor.parse; |
| 112 | }; |
| 113 | |
| 114 | if (current.dialect.supports.JSON) { |
| 115 | it('calls parse and stringify for JSON', async () => { |
no test coverage detected
searching dependent graphs…