mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-08-05 06:50:10 +00:00
Return Bitwarden's desktop-ui-settings-dialog feature state so supported desktop clients use the official settings dialog with browser integration controls. Fixes #315
13 lines
465 B
TypeScript
13 lines
465 B
TypeScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
|
|
import { buildConfigResponse } from '../src/config-response';
|
|
|
|
test('config enables the official Bitwarden desktop settings dialog', () => {
|
|
const body = buildConfigResponse('https://vault.example.test');
|
|
|
|
assert.equal(body.featureStates['desktop-ui-settings-dialog'], true);
|
|
assert.equal(body.environment.vault, 'https://vault.example.test');
|
|
assert.equal(body.object, 'config');
|
|
});
|