From d82441cd5b37b3d8e78e6dad9d27a061d30a3ca1 Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Fri, 5 Jun 2020 15:28:25 -0700 Subject: [PATCH] fix: immutable CID test --- test/dag-link-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dag-link-test.js b/test/dag-link-test.js index 2e23243..f020b61 100644 --- a/test/dag-link-test.js +++ b/test/dag-link-test.js @@ -63,7 +63,7 @@ module.exports = (repo) => { it('has an immutable CID', () => { const link = new DAGLink('hello', 3, 'QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39U') - expect(() => { link.Hash = 'foo' }).to.throw(/property/) + expect(() => { link.Hash = 'foo' }).to.throw(/read.only/) }) }) }