Skip to content

Commit 166be58

Browse files
committed
Add tests for exposed identifiers
1 parent e6b6b3c commit 166be58

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {atom, rss} from './index.js'
4+
import * as mod from './index.js'
45

56
// Hack so the tests don’t need updating everytime…
67
const ODate = global.Date
@@ -11,6 +12,14 @@ global.Date = function (/** @type {string | number} */ value) {
1112
return new ODate(value || 1_234_567_890_123)
1213
}
1314

15+
test('core', () => {
16+
assert.deepEqual(
17+
Object.keys(mod).sort(),
18+
['atom', 'rss'],
19+
'should expose the public api'
20+
)
21+
})
22+
1423
test('rss', () => {
1524
assert.throws(
1625
() => {

0 commit comments

Comments
 (0)