You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/server/models/openapi/__tests__/app.spec.ts

21 lines
526 B
TypeScript

import { filterAvailableAppCapability } from '../app';
describe('openapp', () => {
describe('filterAvailableAppCapability', () => {
test.each([
[['bot'], ['bot']],
[['bot', 'foo'], ['bot']],
[
['bot', 'webpage', 'oauth'],
['bot', 'webpage', 'oauth'],
],
[
['bot', 'webpage', 'oauth', 'a', 'b', 'c'],
['bot', 'webpage', 'oauth'],
],
])('%p', (input, output) => {
expect(filterAvailableAppCapability(input)).toEqual(output);
});
});
});