From af74a3ddae93d41aaaf63975c3322d2e3c322b7b Mon Sep 17 00:00:00 2001 From: Brent Jackson Date: Fri, 22 Jun 2018 14:02:34 -0400 Subject: [PATCH] Adjust tests --- src/SidebarLayout.js | 1 + test/components.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SidebarLayout.js b/src/SidebarLayout.js index f851162..207b823 100644 --- a/src/SidebarLayout.js +++ b/src/SidebarLayout.js @@ -261,6 +261,7 @@ export default class Layout extends React.Component { const { menu, update } = this.state const opts = route ? route.props : {} + if (opts.layout === false) return children const Wrapper = opts.fullWidth ? React.Fragment : MaxWidth diff --git a/test/components.js b/test/components.js index c7b8e3e..70472ef 100644 --- a/test/components.js +++ b/test/components.js @@ -21,7 +21,7 @@ import { browserEnv() // make sure this doesn't conflict with webpack tests -global.DIRNAME = __dirname +global.DIRNAME = 'beep' const renderJSON = el => render(el).toJSON()