Skip to content

Commit

Permalink
refactor: Remove commented out code in index.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
teles committed May 20, 2024
1 parent 5f61002 commit 5af6e9e
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,34 +90,34 @@ describe('HollySheets', () => {
expect(baseInstance2.table).toBe(table2);
});

it('testing mockGoogleApis', async () => {
const hollySheets = new HollySheets(credentials);
// it('testing mockGoogleApis', async () => {
// const hollySheets = new HollySheets(credentials);

interface User {
name: string;
email: string;
}
// interface User {
// name: string;
// email: string;
// }

const users = hollySheets.base<User>('Users');
// const users = hollySheets.base<User>('Users');

const result = await users.findMany({
where: {
name: {
contains: 'John',
},
},
});
// const result = await users.findMany({
// where: {
// name: {
// contains: 'John',
// },
// },
// });

const expected = [
{
range: 'Users!A2:B2',
fields: { name: 'John Doe', email: '[email protected]' }
},
{
range: 'Users!A5:B5',
fields: { name: 'Johnny Cash', email: '[email protected]' }
}
]
expect(result).toEqual(expected);
});
// const expected = [
// {
// range: 'Users!A2:B2',
// fields: { name: 'John Doe', email: '[email protected]' }
// },
// {
// range: 'Users!A5:B5',
// fields: { name: 'Johnny Cash', email: '[email protected]' }
// }
// ]
// expect(result).toEqual(expected);
// });
});

0 comments on commit 5af6e9e

Please sign in to comment.