Skip to content

Commit 240de0a

Browse files
committed
test: enable SMF refresh test
1 parent a976845 commit 240de0a

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

test/scripts/apidocs/__snapshots__/page.spec.ts.snap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3+
exports[`toRefreshFunction > should handle SMF calls 1`] = `
4+
"async (): Promise<unknown[]> => {
5+
await enableFaker();
6+
const result: unknown[] = [];
7+
const fakerCore = faker.fakerCore;
8+
9+
try {
10+
result.push(fakerRegistry.utils.getDefaultRefDate(fakerCore));
11+
} catch (error: unknown) {
12+
result.push(error instanceof Error ? error.name : 'Error');
13+
}
14+
15+
return result;
16+
}"
17+
`;
18+
319
exports[`toRefreshFunction > should handle multiline calls 1`] = `
420
"async (): Promise<unknown[]> => {
521
await enableFaker();

test/scripts/apidocs/page.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe('toRefreshFunction', () => {
113113
expect(result).toMatchSnapshot();
114114
});
115115

116-
it.todo('should handle SMF calls', async () => {
116+
it('should handle SMF calls', async () => {
117117
// given
118118
const method = newTestMethod({
119119
examples: ['getDefaultRefDate(fakerCore);'],

0 commit comments

Comments
 (0)