|
1 | | -import { ObfValidator, GridsetValidator, SnapValidator, TouchChatValidator } from '../src/validation'; |
2 | | -import { ValidationResult } from '../src/validation/validationTypes'; |
| 1 | +import { |
| 2 | + ObfValidator, |
| 3 | + GridsetValidator, |
| 4 | + SnapValidator, |
| 5 | + TouchChatValidator, |
| 6 | +} from '../src/validation'; |
3 | 7 | import JSZip from 'jszip'; |
4 | 8 |
|
5 | 9 | describe('Validation Coverage Tests', () => { |
@@ -344,13 +348,13 @@ describe('Validation Coverage Tests', () => { |
344 | 348 | root: 'root.obf', |
345 | 349 | paths: { |
346 | 350 | boards: { |
347 | | - 'board1': 'boards/board1.obf', |
| 351 | + board1: 'boards/board1.obf', |
348 | 352 | }, |
349 | 353 | images: { |
350 | | - 'img1': 'images/img1.png', |
| 354 | + img1: 'images/img1.png', |
351 | 355 | }, |
352 | 356 | sounds: { |
353 | | - 'snd1': 'sounds/snd1.wav', |
| 357 | + snd1: 'sounds/snd1.wav', |
354 | 358 | }, |
355 | 359 | }, |
356 | 360 | }; |
@@ -392,9 +396,7 @@ describe('Validation Coverage Tests', () => { |
392 | 396 | const result = await new ObfValidator().validate(content, 'test.obz', content.length); |
393 | 397 |
|
394 | 398 | expect(result.valid).toBe(false); |
395 | | - const hasManifestError = result.results.some( |
396 | | - (r) => r.type === 'manifest' && r.error |
397 | | - ); |
| 399 | + const hasManifestError = result.results.some((r) => r.type === 'manifest' && r.error); |
398 | 400 | expect(hasManifestError).toBe(true); |
399 | 401 | }); |
400 | 402 |
|
@@ -426,7 +428,7 @@ describe('Validation Coverage Tests', () => { |
426 | 428 | root: 'boards/board1.obf', |
427 | 429 | paths: { |
428 | 430 | boards: { |
429 | | - 'board1': 'boards/board1.obf', |
| 431 | + board1: 'boards/board1.obf', |
430 | 432 | }, |
431 | 433 | images: {}, |
432 | 434 | sounds: {}, |
|
0 commit comments