mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-23 12:05:27 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
const assert = require('node:assert/strict');
|
||||
const { test } = require('node:test');
|
||||
|
||||
test('keeps the two reviewed Owner ceremony modules internal to console', () => {
|
||||
const manifest = require('../package.json');
|
||||
assert.deepEqual(Object.keys(manifest.exports).sort(), [
|
||||
'.',
|
||||
'./authenticated-command',
|
||||
'./credential-administration-delivery',
|
||||
'./identity-authentication',
|
||||
'./pepper-custody',
|
||||
'./pepper-custody/destructive',
|
||||
'./secret-delivery',
|
||||
]);
|
||||
assert.throws(
|
||||
() => require('@qinglong/local-owner-console/bootstrap'),
|
||||
(error) => error?.code === 'ERR_PACKAGE_PATH_NOT_EXPORTED',
|
||||
);
|
||||
assert.equal(
|
||||
typeof require('../dist/bootstrap').createLocalOwnerBootstrapService,
|
||||
'function',
|
||||
);
|
||||
assert.equal(
|
||||
typeof require('../dist/credential-recovery')
|
||||
.createLocalOwnerCredentialRecoveryService,
|
||||
'function',
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user