Get a band for your melodies!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
375 B

  1. import { describe, it, expect } from 'vitest';
  2. import SERVER from '../src/server';
  3. import '../src/routes';
  4. describe('Example', () => {
  5. it('should have the expected content', async () => {
  6. const response = await SERVER
  7. .inject()
  8. .get('/')
  9. .headers({
  10. 'Accept': 'application/json',
  11. });
  12. expect(response.statusCode).toBe(200);
  13. });
  14. });