comcigan.ts/tests/School.test.ts
2024-08-10 17:08:53 +09:00

14 lines
375 B
TypeScript

import assert from 'node:assert'
import test from 'node:test'
import { comcigan } from '.'
import { School } from '../src'
test('Search schools by name', async () => {
const schools = await comcigan.searchSchools('중학교')
assert(schools.length > 0)
})
test('Get school by name', async () => {
const school = await School.fromName('중학교')
assert(school)
})