Skip to content

Commit a465933

Browse files
committed
fix tests
1 parent 7150e31 commit a465933

File tree

3 files changed

+12
-13
lines changed
  • packages/create-cloudflare

3 files changed

+12
-13
lines changed

packages/create-cloudflare/e2e-tests/cli.test.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
8282
);
8383

8484
expect(project.path).toExist();
85-
expect(output).toContain(`category Hello World example`);
86-
expect(output).toContain(`type Hello World Worker`);
85+
expect(output).toContain(`category Hello World Starter`);
86+
expect(output).toContain(`type Worker + Static Assets`);
8787
expect(output).toContain(`lang TypeScript`);
8888
expect(output).toContain(`no git`);
8989
expect(output).toContain(`no deploy`);
@@ -179,7 +179,7 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
179179
);
180180

181181
expect(project.path).toExist();
182-
expect(output).toContain(`type Hello World Worker`);
182+
expect(output).toContain(`type Worker + Static Assets`);
183183
expect(output).toContain(`lang TypeScript`);
184184
expect(output).toContain(`no git`);
185185
expect(output).toContain(`no deploy`);
@@ -272,8 +272,8 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
272272
);
273273

274274
expect(project.path).toExist();
275-
expect(output).toContain(`category Hello World example`);
276-
expect(output).toContain(`type Hello World Worker`);
275+
expect(output).toContain(`category Hello World Starter`);
276+
expect(output).toContain(`type Worker only`);
277277
expect(output).toContain(`lang Python`);
278278
},
279279
);
@@ -379,15 +379,15 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
379379
matcher: /What would you like to start with\?/,
380380
input: {
381381
type: "select",
382-
target: "Hello World example",
382+
target: "Hello World Starter",
383383
assertDefaultSelection: "Framework Starter",
384384
},
385385
},
386386
{
387387
matcher: /Which template would you like to use\?/,
388388
input: {
389389
type: "select",
390-
target: "Hello World Worker Using Durable Objects",
390+
target: "Worker + Durable Objects",
391391
},
392392
},
393393
{
@@ -401,9 +401,8 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
401401
matcher: /Which template would you like to use\?/,
402402
input: {
403403
type: "select",
404-
target: "Hello World Worker",
405-
assertDefaultSelection:
406-
"Hello World Worker Using Durable Objects",
404+
target: "Worker only",
405+
assertDefaultSelection: "Worker + Durable Objects",
407406
},
408407
},
409408
{
@@ -418,7 +417,7 @@ describe.skipIf(experimental || frameworkToTest || isQuarantineMode())(
418417
);
419418

420419
expect(project.path).toExist();
421-
expect(output).toContain(`type Hello World Worker`);
420+
expect(output).toContain(`type Worker only`);
422421
expect(output).toContain(`lang JavaScript`);
423422
},
424423
);

packages/create-cloudflare/templates/hello-world-durable-object-with-assets/c3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const config: TemplateConfig = {
44
configVersion: 1,
55
id: "hello-world-durable-object-with-assets",
66
path: "templates/hello-world-durable-object-with-assets",
7-
displayName: "Worker + Static Assets + Durable Object",
7+
displayName: "Worker + Static Assets + Durable Objects",
88
description:
99
"Get started with a basic stateful app to build projects like real-time chats, collaborative apps, and multiplayer games, which hosts assets",
1010
platform: "workers",

packages/create-cloudflare/templates/hello-world-durable-object/c3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
configVersion: 1,
33
id: "hello-world-durable-object",
4-
displayName: "Worker + Durable Object",
4+
displayName: "Worker + Durable Objects",
55
description:
66
"Get started with a basic stateful app to build projects like real-time chats, collaborative apps, and multiplayer games",
77
platform: "workers",

0 commit comments

Comments
 (0)