Closed manuartero closed 5 months ago
running npm test from fresh start doesn't work.
npm test
10 passing (37s) 1 failing 1) card find returns card: AssertionError: expected { Object (name, manaCost, ...) } to have nested property 'colors[0]' of 'Black', but got 'B' + expected - actual -B +Black at Context.<anonymous> (src/test/test-card.js:16:38)
result.card.should.have.property('type', 'Sorcery — Arcane') - result.card.should.have.nested.property('colors[0]', 'Black') + result.card.should.have.nested.property('colors[0]', 'B') result.card.should.have.nested.property('types[0]', 'Sorcery')
Thanks! Looks like the underlying API changed at some point. I've updated the test.
desc
running
npm test
from fresh start doesn't work.steps
npm test output:
quick fix