File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import TabItem from "@theme/TabItem";
10
10
In order to make testing easier we created some helpers that can be accessed by including
11
11
12
12
``` js
13
- const { ExperimentFakes } = ChromeUtils .import (
13
+ const { ExperimentFakes } = ChromeUtils .importESModule (
14
14
" resource://testing-common/NimbusTestUtils.sys.mjs" ,
15
15
);
16
16
```
@@ -60,10 +60,10 @@ For experiments that are in "preview" mode:
60
60
For writing tests you usually want to have the following modules imported:
61
61
62
62
``` js
63
- const { ExperimentAPI , NimbusFeatures } = ChromeUtils .import (
63
+ const { ExperimentAPI , NimbusFeatures } = ChromeUtils .importESModule (
64
64
" resource://nimbus/ExperimentAPI.sys.mjs" ,
65
65
);
66
- const { ExperimentFakes } = ChromeUtils .import (
66
+ const { ExperimentFakes } = ChromeUtils .importESModule (
67
67
" resource://testing-common/NimbusTestUtils.sys.mjs" ,
68
68
);
69
69
```
You can’t perform that action at this time.
0 commit comments