mirror of https://github.com/msgbyte/tailchat
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.
21 lines
526 B
TypeScript
21 lines
526 B
TypeScript
3 years ago
|
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);
|
||
|
});
|
||
|
});
|
||
|
});
|