Skip to content

Commit 0b7775e

Browse files
authored
add test case to test for brakets
1 parent 3b6ef1a commit 0b7775e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • test/configCases/plugins/define-plugin

‎test/configCases/plugins/define-plugin/index.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,10 @@ it("should assign to process.env", function() {
8080
process.env.TEST = "test";
8181
process.env.TEST.should.be.eql("test");
8282
});
83+
it("should not have brakets on start", function() {
84+
function f() {
85+
throw new Error("should not be called");
86+
}
87+
f // <- no semicolon here
88+
OBJECT;
89+
});

0 commit comments

Comments
 (0)