We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b6b3c commit 166be58Copy full SHA for 166be58
test.js
@@ -1,6 +1,7 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {atom, rss} from './index.js'
4
+import * as mod from './index.js'
5
6
// Hack so the tests don’t need updating everytime…
7
const ODate = global.Date
@@ -11,6 +12,14 @@ global.Date = function (/** @type {string | number} */ value) {
11
12
return new ODate(value || 1_234_567_890_123)
13
}
14
15
+test('core', () => {
16
+ assert.deepEqual(
17
+ Object.keys(mod).sort(),
18
+ ['atom', 'rss'],
19
+ 'should expose the public api'
20
+ )
21
+})
22
+
23
test('rss', () => {
24
assert.throws(
25
() => {
0 commit comments