From d4e4ba1f7c6585ebbf341eb351025ae666b6dd07 Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Sat, 16 Nov 2024 20:18:18 +0100 Subject: [PATCH] fix test --- test/integration/style-spec/validate_spec.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/style-spec/validate_spec.test.ts b/test/integration/style-spec/validate_spec.test.ts index 52115714..2e262316 100644 --- a/test/integration/style-spec/validate_spec.test.ts +++ b/test/integration/style-spec/validate_spec.test.ts @@ -2,7 +2,7 @@ import {globSync} from 'glob'; import fs from 'fs'; import path from 'path'; import {validateStyle as validate} from '../../../src/validate_style'; -import {spec as reference} from '../../../src/reference/latest'; +import {latest} from '../../../src/reference/latest'; const UPDATE = !!process.env.UPDATE; @@ -21,7 +21,7 @@ describe('validate_spec', () => { test('errors from validate do not contain line numbers', () => { const style = JSON.parse(fs.readFileSync('test/integration/style-spec/tests/bad-color.input.json', 'utf8')); - const result = validate(style, reference); + const result = validate(style, latest); expect(result[0].line).toBeUndefined(); }); }); @@ -92,5 +92,5 @@ describe('Validate sdk-support in spec', () => { }); } - checkRoot(reference, []); + checkRoot(latest, []); });