mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 20:02:13 +08:00
13 lines
439 B
TypeScript
13 lines
439 B
TypeScript
import { discoveryResources } from './discovery';
|
|
|
|
const discoverySnapshot = require('./snapshots/discovery-snapshot.json');
|
|
|
|
describe('simple typescript tests', () => {
|
|
it('simple', async () => {
|
|
const watchable = discoveryResources(discoverySnapshot)
|
|
.filter((v) => v.verbs.includes('watch'))
|
|
.map((v) => v.resource);
|
|
expect(watchable).toEqual(['user-storage', 'dashboards', 'dashboards', 'dashboards']);
|
|
});
|
|
});
|