Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Nov 16, 2024
1 parent 940d317 commit d4e4ba1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/style-spec/validate_spec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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();
});
});
Expand Down Expand Up @@ -92,5 +92,5 @@ describe('Validate sdk-support in spec', () => {
});
}

checkRoot(reference, []);
checkRoot(latest, []);
});

0 comments on commit d4e4ba1

Please sign in to comment.