File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
packages/@lwc/engine-server/src/__tests__ Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024, Salesforce, 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 { swapComponent , swapStyle , swapTemplate } from '../index' ;
8
+
9
+ it ( 'throws error for swapComponent' , ( ) => {
10
+ expect ( swapComponent ) . toThrow (
11
+ / s w a p C o m p o n e n t i s n o t s u p p o r t e d i n @ l w c \/ e n g i n e - s e r v e r , o n l y @ l w c \/ e n g i n e - d o m /
12
+ ) ;
13
+ } ) ;
14
+
15
+ it ( 'throws error for swapStyle' , ( ) => {
16
+ expect ( swapStyle ) . toThrow (
17
+ / s w a p S t y l e i s n o t s u p p o r t e d i n @ l w c \/ e n g i n e - s e r v e r , o n l y @ l w c \/ e n g i n e - d o m /
18
+ ) ;
19
+ } ) ;
20
+
21
+ it ( 'throws error for swapTemplate' , ( ) => {
22
+ expect ( swapTemplate ) . toThrow (
23
+ / s w a p T e m p l a t e i s n o t s u p p o r t e d i n @ l w c \/ e n g i n e - s e r v e r , o n l y @ l w c \/ e n g i n e - d o m /
24
+ ) ;
25
+ } ) ;
You can’t perform that action at this time.
0 commit comments