Skip to content
This repository was archived by the owner on Nov 13, 2020. It is now read-only.

Commit f6f2d80

Browse files
committed
Fix test
1 parent 5dc431e commit f6f2d80

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/contant.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ describe("@Constant decorator", function(){
3636
Constant("product")(classInstance, "myAttribute");
3737
Constant("config")(classInstance, "config");
3838

39-
assert.throws(() => classInstance.myAttribute = "newConstant", TypeError, "Cannot set property myAttribute of #<TestConstant> which has only a getter");
40-
assert.throws(() => classInstance.config.env = "newConstant", TypeError, "Cannot assign to read only property \'env\' of object \'#<Object>\'");
39+
assert.throws(() => classInstance.myAttribute = "newConstant", TypeError, /Cannot set property myAttribute of/);
40+
assert.throws(() => classInstance.config.env = "newConstant", TypeError, /Cannot assign to read only property/);
4141

4242
});
4343

test/value.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ describe("@Value decorator", function(){
4343

4444
classInstance.myAttribute = "newValue";
4545

46-
console.log("classInstance.config =>", classInstance.config);
4746
expect(classInstance.config).to.be.an("object");
4847

4948
classInstance.config.env = "prod";

0 commit comments

Comments
 (0)