MCPcopy Create free account
hub / github.com/exercism/javascript / test

Function test

exercises/practice/change/change.spec.js:65–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 const change = new Change();
64 const message = 'The total 3 cannot be represented in the given currency.';
65 const test = () => {
66 change.calculate([5, 10], 3);
67 };
68 expect(test).toThrowError(message);
69 });
70

Calls 1

calculateMethod · 0.80

Tested by

no test coverage detected