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 d4e4ba1 commit e86c103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/build/style-spec.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {readdir} from 'fs/promises';
import {spec as reference} from '../../src/reference/latest';
import {latest} from '../../src/reference/latest';
import fs from 'fs';

const minBundle = fs.readFileSync('dist/index.mjs', 'utf8');
Expand Down Expand Up @@ -34,7 +34,7 @@ describe('@maplibre/maplibre-gl-style-spec npm package', () => {
});

test('trims reference.json fields', () => {
expect(reference.$root.version.doc).toBeTruthy();
expect(minBundle.includes(reference.$root.version.doc)).toBeFalsy();
expect(latest.$root.version.doc).toBeTruthy();
expect(minBundle.includes(latest.$root.version.doc)).toBeFalsy();
});
});

0 comments on commit e86c103

Please sign in to comment.