Skip to content

Commit

Permalink
fix import in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skarim committed Sep 1, 2024
1 parent 924d2d4 commit 46df85c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/extractProperties.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const ts = require('typescript');
const {
extractJsProperties,
extractProperties,
extractTsProperties,
} = require('../src/analyze/helpers');

describe('extractJsProperties', () => {
Expand Down Expand Up @@ -69,7 +69,7 @@ describe('extractTsProperties', () => {
getTypeAtLocation: jest.fn().mockReturnValue({}),
typeToString: jest.fn().mockReturnValue('string'),
};
const properties = extractProperties(checker, node);
const properties = extractTsProperties(checker, node);
expect(properties).toEqual({
userId: { type: 'string' },
plan: { type: 'string' },
Expand All @@ -95,7 +95,7 @@ describe('extractTsProperties', () => {
getTypeAtLocation: jest.fn().mockReturnValue({}),
typeToString: jest.fn().mockReturnValue('string'),
};
const properties = extractProperties(checker, node);
const properties = extractTsProperties(checker, node);
expect(properties).toEqual({
address: {
type: 'object',
Expand Down

0 comments on commit 46df85c

Please sign in to comment.