Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Cass Fridkin committed Mar 18, 2022
1 parent f95e30b commit e0935f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/wrangler/src/__tests__/entry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("entry", () => {

await expect(runWrangler("publish")).rejects
.toThrowErrorMatchingInlineSnapshot(`
"You cannot use a durable object from a Service Worker, and should migrate to the Module Worker format instead.
"You cannot implement a Durable Object in a Service Worker, and should migrate to the Module format instead.
https://developers.cloudflare.com/workers/learning/migrating-to-module-workers/"
`);
});
Expand Down Expand Up @@ -59,7 +59,7 @@ describe("entry", () => {

await expect(runWrangler("publish")).rejects
.toThrowErrorMatchingInlineSnapshot(`
"You cannot use a durable object from a Service Worker, and should migrate to the Module Worker format instead.
"You cannot implement a Durable Object in a Service Worker, and should migrate to the Module format instead.
https://developers.cloudflare.com/workers/learning/migrating-to-module-workers/"
`);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function getEntry(

if (format === "service-worker" && hasDurableObjectImplementation(config)) {
throw new Error(
"You cannot use a durable object from a Service Worker, and should migrate to the Module Worker format instead.\nhttps://developers.cloudflare.com/workers/learning/migrating-to-module-workers/"
"You cannot implement a Durable Object in a Service Worker, and should migrate to the Module format instead.\nhttps://developers.cloudflare.com/workers/learning/migrating-to-module-workers/"
);
}

Expand Down

0 comments on commit e0935f2

Please sign in to comment.