Skip to content

Commit 26cee0d

Browse files
jmsjtujamessimoneekashida
authored
Adds Toast.show() static mock method for lightning/toast module (#464) (#468)
* Adds Toast.show() static mock method for lightning/toast module * Update src/lightning-stubs/toast/toast.js * Run prettier on suggestion --------- Co-authored-by: James Simone <[email protected]> Co-authored-by: Eugene Kashida <[email protected]>
1 parent 57aef28 commit 26cee0d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/lightning-stubs/toast/toast.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2025, salesforce.com, inc.
3+
* All rights reserved.
4+
* SPDX-License-Identifier: MIT
5+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6+
*/
7+
import { LightningElement, api } from 'lwc';
8+
9+
export default class Toast extends LightningElement {
10+
static show() {}
11+
12+
@api labelLinks;
13+
@api messageLinks;
14+
@api label;
15+
@api message;
16+
@api variant;
17+
@api mode;
18+
@api focus() {}
19+
}

0 commit comments

Comments
 (0)