mirror of
https://github.com/moroshko/rxviz.git
synced 2026-01-18 16:22:20 +00:00
16 lines
454 B
JavaScript
16 lines
454 B
JavaScript
import codeExamples from './code-examples';
|
|
|
|
it('has at least one code example', () => {
|
|
expect(Object.keys(codeExamples).length).toBeGreaterThanOrEqual(1);
|
|
});
|
|
|
|
it('code examples have the right shape', () => {
|
|
for (const exampleId in codeExamples) {
|
|
const { name, code, timeWindow } = codeExamples[exampleId];
|
|
|
|
expect(typeof name).toBe('string');
|
|
expect(typeof code).toBe('string');
|
|
expect(typeof timeWindow).toBe('number');
|
|
}
|
|
});
|