Skip to content

Commit

Permalink
refactor: request handling in api.ts and update imports in index.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jqshuv committed Oct 19, 2024
1 parent a40485e commit 25609bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT

import { env, createExecutionContext, waitOnExecutionContext, SELF } from 'cloudflare:test';
import { env, createExecutionContext, waitOnExecutionContext } from 'cloudflare:test';
import { describe, it, expect } from 'vitest';
import worker from '../src/index';

Expand All @@ -19,7 +19,7 @@ describe('Hello World worker', () => {
const response = await worker.fetch(request, env);
// Wait for all `Promise`s passed to `ctx.waitUntil()` to settle before running test assertions
await waitOnExecutionContext(ctx);
expect(await response.text()).toMatchInlineSnapshot("just redirect. - powered by jqshuv x unately.");
expect(await response.text()).toMatchInlineSnapshot("\"just redirect. - powered by jqshuv x unately.\"");
});

it('post request url', async () => {
Expand Down

0 comments on commit 25609bb

Please sign in to comment.