forked from epesooj/webring
Move to Deno+Bunny.net, add a way to test webring locally.
This commit is contained in:
parent
9f66f0b37b
commit
8670aa3412
33 changed files with 599 additions and 3360 deletions
|
@ -1,7 +0,0 @@
|
|||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
describe('Hello World worker', () => {
|
||||
it('succeeds simple test', async () => {
|
||||
expect(1 + 1).toBe(2);
|
||||
});
|
||||
});
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"]
|
||||
},
|
||||
"include": ["./**/*.ts", "../functions/env.d.ts"],
|
||||
"exclude": []
|
||||
}
|
7
test/webring_test.ts
Normal file
7
test/webring_test.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { assertEquals } from '@std/assert';
|
||||
import { next } from '../src/webring.ts';
|
||||
|
||||
Deno.test(function nextTest() {
|
||||
const nextEntry = next('main');
|
||||
assertEquals(nextEntry.id, 'dslog');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue