(Type)
| 120 | }; |
| 121 | |
| 122 | const testFailure = function(Type) { |
| 123 | Type.constructor.parse = _.noop(); |
| 124 | |
| 125 | expect(() => { |
| 126 | current.refreshTypes(); |
| 127 | }).to.throw(`Parse function not supported for type ${Type.key} in dialect ${dialect}`); |
| 128 | |
| 129 | delete Type.constructor.parse; |
| 130 | }; |
| 131 | |
| 132 | if (current.dialect.supports.JSON) { |
| 133 | it('calls parse and stringify for JSON', async () => { |
no test coverage detected