Add jest tests for twenty-front (#2983)
* Add jest tests for twenty-front Co-authored-by: v1b3m <vibenjamin6@gmail.com> * Fix tests --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
import { expect } from '@storybook/test';
|
||||
|
||||
import { OperationType } from '@/apollo/types/operation-type';
|
||||
|
||||
import formatTitle from '../format-title';
|
||||
|
||||
describe('formatTitle', () => {
|
||||
it('should correctly format the title', () => {
|
||||
const res = formatTitle(
|
||||
OperationType.Query,
|
||||
'default',
|
||||
'GetCurrentUser',
|
||||
1000,
|
||||
);
|
||||
const title = res[0];
|
||||
|
||||
expect(title).toBe(
|
||||
'%c apollo %cquery %cdefault::%cGetCurrentUser %c(in 1000 ms)',
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,4 @@
|
||||
// More work needed here
|
||||
describe.skip('loggerLink', () => {
|
||||
it('should log the correct message', () => {});
|
||||
});
|
||||
Reference in New Issue
Block a user