From eb0bdbe79865fbeb2bf80605d3dcb92b296a1ad8 Mon Sep 17 00:00:00 2001 From: pimlie Date: Mon, 7 Oct 2019 23:41:03 +0200 Subject: [PATCH] test: add options to generate test --- test/unit/plugin.test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/unit/plugin.test.js b/test/unit/plugin.test.js index 1d2cccc..b4227af 100644 --- a/test/unit/plugin.test.js +++ b/test/unit/plugin.test.js @@ -119,14 +119,16 @@ describe('plugin', () => { warn.mockRestore() }) - test('can use generate export', () => { + test('can use generate export with options', () => { process.server = true const rawInfo = { meta: [{ charset: 'utf-8' }] } - const metaInfo = VueMetaPlugin.generate(rawInfo) - expect(metaInfo.meta.text()).toBe('') + const metaInfo = VueMetaPlugin.generate(rawInfo, { + ssrAppId: 'my-test-app-id' + }) + expect(metaInfo.meta.text()).toBe('') // no error on not provided metaInfo types expect(metaInfo.script.text()).toBe('')