Skip to content

Commit 0e82f66

Browse files
authored
fix: run ospec tests (#279)
ospec does not support auto-resolving ES modules (`*.mjs`), so we have to specify them all manually. Also point to renamed `validation.mjs` file.
1 parent 6d0748b commit 0e82f66

14 files changed

+14
-14
lines changed

extensions/camera/tests/camera_collection.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/camera/tests/camera_item.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/film/tests/film_collection.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/film/tests/film_item.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/historical-imagery/tests/historical-imagery_collection.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/historical-imagery/tests/historical-imagery_item.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/linz/tests/linz_collection.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/linz/tests/linz_item.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/quality/tests/quality_collection.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

extensions/scanning/tests/scanning_collection.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import o from 'ospec';
44
import { dirname, join } from 'path';
55
import { fileURLToPath } from 'url';
66

7-
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.js';
7+
import { AjvOptions, DefaultTimeoutMillis } from '../../../validation.mjs';
88

99
const __dirname = dirname(fileURLToPath(import.meta.url));
1010
const schemaPath = join(__dirname, '..', 'schema.json');

0 commit comments

Comments
 (0)