Compare commits
4 Commits
v3.2.2
...
306c046adb
| Author | SHA1 | Date | |
|---|---|---|---|
|
306c046adb
|
|||
|
2dab64be19
|
|||
|
175deddc9c
|
|||
|
ff638ad04f
|
2
.github/workflows/publish-main.yml
vendored
2
.github/workflows/publish-main.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Publish (main)
|
name: Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
|
|||||||
21
.github/workflows/test.yml
vendored
Normal file
21
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: latest
|
||||||
|
registry-url: https://registry.npmjs.org/
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run tests
|
||||||
|
run: npm test
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { describe, expect, test } from '@jest/globals'
|
import { describe, expect, test } from '@jest/globals'
|
||||||
import { Router } from '..'
|
import { Router } from '../src/index'
|
||||||
|
|
||||||
describe('Router', () => {
|
describe('Router', () => {
|
||||||
test('use', async () => {
|
test('use', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user