diff --git a/test/inject.js b/test/inject.js index a602c6c..5d4371c 100644 --- a/test/inject.js +++ b/test/inject.js @@ -31,7 +31,7 @@ test('throws', () => { assert.unreachable('should throw'); } catch (err) { assert.instance(err, TypeError); - assert.is(err.message, `Cannot read property 'foo' of undefined`); + assert.match(err.message, /Cannot read propert(ies|y 'foo') of undefined/); } });