From eca20d13fd5886d00ea76365982303a1226af9f9 Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Fri, 16 Feb 2018 15:25:43 -0800 Subject: [PATCH] Makes sure Toast is SSR compatible #66 --- packages/marble-toast/test/Toast.node.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/marble-toast/test/Toast.node.js diff --git a/packages/marble-toast/test/Toast.node.js b/packages/marble-toast/test/Toast.node.js new file mode 100644 index 0000000..354ef8c --- /dev/null +++ b/packages/marble-toast/test/Toast.node.js @@ -0,0 +1,13 @@ +/** + * @jest-environment node + */ + +import Component from 'metal-component'; +import Toast from '../src/Toast'; + +describe('Toast.node', () => { + it('should not fail on the server side', () => { + const tooltip = Component.renderToString(Toast); + expect(tooltip).not.toBeNull(); + }); +});