-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test to confirm export behavior (#4022)
- Loading branch information
1 parent
8a45b74
commit 0539da2
Showing
7 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...wc/integration-karma/test/component/default-export/x/exportAsDefault/exportAsDefault.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<h1>hello world</h1> | ||
</template> |
5 changes: 5 additions & 0 deletions
5
...@lwc/integration-karma/test/component/default-export/x/exportAsDefault/exportAsDefault.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
class ExportAsDefault extends LightningElement {} | ||
|
||
export { ExportAsDefault as default }; |
3 changes: 3 additions & 0 deletions
3
...ent/default-export/x/exportAsDefaultWithOtherExports/exportAsDefaultWithOtherExports.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<h1>hello world</h1> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...onent/default-export/x/exportAsDefaultWithOtherExports/exportAsDefaultWithOtherExports.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
const exportee = 'foo'; | ||
|
||
class ExportAsDefaultWithOtherExports extends LightningElement {} | ||
|
||
export { ExportAsDefaultWithOtherExports as default, exportee }; |
3 changes: 3 additions & 0 deletions
3
...fault-export/x/exportDefaultClassWithOtherExports/exportDefaultClassWithOtherExports.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<h1>hello world</h1> | ||
</template> |
7 changes: 7 additions & 0 deletions
7
...default-export/x/exportDefaultClassWithOtherExports/exportDefaultClassWithOtherExports.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
const exportee = 'foo'; | ||
|
||
export default class ExportDefaultClassWithOtherExports extends LightningElement {} | ||
|
||
export { exportee }; |