mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-23 12:05:27 +08:00
18 lines
493 B
JavaScript
18 lines
493 B
JavaScript
const assert = require('node:assert/strict');
|
|
const { test } = require('node:test');
|
|
|
|
const {
|
|
classifyLocalReconciliationFact,
|
|
} = require('../dist/deployment/reconciliation/planning/inventory.js');
|
|
|
|
test('classifies Legacy runtime instances as preserved run history', () => {
|
|
assert.equal(
|
|
classifyLocalReconciliationFact('legacy', 'RunningInstances'),
|
|
'run_history',
|
|
);
|
|
assert.equal(
|
|
classifyLocalReconciliationFact('legacy', 'PluginOwnedState'),
|
|
'unknown',
|
|
);
|
|
});
|