Files
integrations/test/wolf_smartset/test.wolf_smartset.discovery.node.ts

13 lines
547 B
TypeScript

import { expect, tap } from '@git.zone/tstest/tapbundle';
import { createWolfSmartsetDiscoveryDescriptor } from '../../ts/integrations/wolf_smartset/index.js';
tap.test('matches manual Wolf Smartset setup hints', async () => {
const descriptor = createWolfSmartsetDiscoveryDescriptor();
const matcher = descriptor.getMatchers()[0];
const result = await matcher.matches({ host: 'wolf.local' }, {});
expect(result.matched).toBeTrue();
expect(result.candidate?.integrationDomain).toEqual('wolf_smartset');
});
export default tap.start();