Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pages: ['http://www.bla.com/'],
active: true,
})
expect(
await customLists(setup).fetchListPagesById(
{
id: listId,
},
),
).toEqual([
{
listId,
pageUrl: 'bla.com',
fullUrl: 'http://www.bla.com/',
createdAt: expect.any(Date),
},
])
// expect(await setup.backgroundModules.search.remoteFunctions.search.searchPages({
// contentTypes: { pages: true, notes: false, highlights: false },
// collections: [listId]
// })).toEqual([])
},
},
postCheck: async ({ setup }) => {
expect(
await customLists(setup).fetchListById({
id: listId,
}),
).toEqual({
id: expect.any(Number),
name: 'Updated List Title',
isDeletable: true,
isNestable: true,
createdAt: expect.any(Date),
pages: ['http://www.bla.com/'],
active: true,
})
expect(
await customLists(setup).fetchListPagesById(
{
id: listId,
},
),
).toEqual([
{
codeFiles.forEach(file => {
expect(file.path).toEqual(expect.any(String));
expect(file.content).toEqual(expect.any(String));
});
return codeFiles.filter(code => code.content !== "");
const getCodeFilesFromServer = async socket => {
const codeFiles = await sendRequest(socket, "GET_CODE");
expect(codeFiles).toEqual(expect.any(Array));
codeFiles.forEach(file => {
expect(file.path).toEqual(expect.any(String));
expect(file.content).toEqual(expect.any(String));
});
return codeFiles.filter(code => code.content !== "");
};