Skip to content

Commit 1c9afbe

Browse files
committed
Update "shows Dart as an option" test
Should be using the dartfunctions experiment now
1 parent 281955c commit 1c9afbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/init/features/functions.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ describe("functions", () => {
144144
expect(values).to.not.include("dart");
145145
});
146146

147-
it("shows Dart as an option when functionsrunapionly is enabled", async () => {
148-
experiments.setEnabled("functionsrunapionly", true);
147+
it("shows Dart as an option when dartfunctions is enabled", async () => {
148+
experiments.setEnabled("dartfunctions", true);
149149
const setup = { config: { functions: [] }, rcfile: {} };
150150
prompt.select.onFirstCall().resolves("javascript");
151151
prompt.confirm.resolves(false);
@@ -158,7 +158,7 @@ describe("functions", () => {
158158
const values = choices.map((c: any) => c.value);
159159
expect(values).to.include("dart");
160160
} finally {
161-
experiments.setEnabled("functionsrunapionly", false);
161+
experiments.setEnabled("dartfunctions", false);
162162
}
163163
});
164164
});

0 commit comments

Comments
 (0)