Skip to content

Commit 54d17fa

Browse files
committed
test: wire identifier cannot contain computed properties
1 parent 095a777 commit 54d17fa

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { wire, LightningElement } from "lwc";
2+
import Foo from "foo";
3+
export default class Test extends LightningElement {
4+
@wire(Foo['Bar'], {}) wiredProp;
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"message": "LWC1131: @wire identifier cannot contain computed properties",
3+
"loc": {
4+
"line": 4,
5+
"column": 8,
6+
"start": 130,
7+
"length": 10
8+
},
9+
"filename": "test.js"
10+
}

packages/@lwc/babel-plugin-component/src/__tests__/fixtures/wire-decorator/decorator-rejects-computed-props/expected.js

Whitespace-only changes.

0 commit comments

Comments
 (0)