diff --git a/binding/web/test/picollm.test.ts b/binding/web/test/picollm.test.ts index 06ec91c..76f47b6 100644 --- a/binding/web/test/picollm.test.ts +++ b/binding/web/test/picollm.test.ts @@ -521,56 +521,56 @@ describe('PicoLLM generate tests (worker)', () => { generateTests(); }); -// describe.only('PicoLLM Dialog tests', () => { -// it('should be able to get prompt', () => { -// const data = testData.dialog; -// const conversation = data.conversation as [string, string][]; -// const prompts = data.prompts; -// -// cy.wrap(null).then(async () => { -// await runDialogTest(prompts, conversation); -// }); -// }); -// -// it('should be able to get prompt with system', () => { -// const data = testData.dialog; -// const conversation = data.conversation as [string, string][]; -// const system = data.system; -// const prompts = data['prompts-with-system']; -// -// -// cy.wrap(null).then(async () => { -// await runDialogTest(prompts, conversation, { -// system: system -// }); -// }); -// }); -// -// it('should be able to get prompt with history', () => { -// const data = testData.dialog; -// const conversation = data.conversation as [string, string][]; -// const prompts = data['prompts-with-history']; -// -// -// cy.wrap(null).then(async () => { -// await runDialogTest(prompts, conversation, { -// history: 0 -// }); -// }); -// }); -// -// it('should be able to get prompt with system and history', () => { -// const data = testData.dialog; -// const conversation = data.conversation as [string, string][]; -// const system = data.system; -// const prompts = data['prompts-with-system-and-history']; -// -// -// cy.wrap(null).then(async () => { -// await runDialogTest(prompts, conversation, { -// system: system, -// history: 0 -// }); -// }); -// }); -// }); +describe('PicoLLM Dialog tests', () => { + it('should be able to get prompt', () => { + const data = testData.dialog; + const conversation = data.conversation as [string, string][]; + const prompts = data.prompts; + + cy.wrap(null).then(async () => { + await runDialogTest(prompts, conversation); + }); + }); + + it('should be able to get prompt with system', () => { + const data = testData.dialog; + const conversation = data.conversation as [string, string][]; + const system = data.system; + const prompts = data['prompts-with-system']; + + + cy.wrap(null).then(async () => { + await runDialogTest(prompts, conversation, { + system: system + }); + }); + }); + + it('should be able to get prompt with history', () => { + const data = testData.dialog; + const conversation = data.conversation as [string, string][]; + const prompts = data['prompts-with-history']; + + + cy.wrap(null).then(async () => { + await runDialogTest(prompts, conversation, { + history: 0 + }); + }); + }); + + it('should be able to get prompt with system and history', () => { + const data = testData.dialog; + const conversation = data.conversation as [string, string][]; + const system = data.system; + const prompts = data['prompts-with-system-and-history']; + + + cy.wrap(null).then(async () => { + await runDialogTest(prompts, conversation, { + system: system, + history: 0 + }); + }); + }); +}); diff --git a/resources/.lint/spell-check/dict.txt b/resources/.lint/spell-check/dict.txt index 8c480ff..142a4d7 100644 --- a/resources/.lint/spell-check/dict.txt +++ b/resources/.lint/spell-check/dict.txt @@ -71,3 +71,4 @@ Unmanaged Unretained Podfile xcworkspace +webgpu