Skip to content

Commit

Permalink
wip: engine fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ferreiro Val committed Nov 18, 2018
1 parent eaf1353 commit 506bc50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ describe('synthetic shadow', () => {
<section>tmpl1</section>
</template>
`);
tmpl1.stylesheets = {
tmpl1.stylesheets = [() => ``];
tmpl1.stylesheetTokens = {
hostAttribute: 'tmpl1-host',
shadowAttribute: 'tmpl1',
stylesheets: [() => ``],
};

const tmpl2 = compileTemplate(`
Expand Down
2 changes: 0 additions & 2 deletions packages/lwc-engine/src/framework/stylesheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ export function evaluateCSS(vm: VM, stylesheets: StylesheetFactory[], hostAttrib
if (process.env.NODE_ENV !== 'production') {
assert.isTrue(vm && "cmpRoot" in vm, `${vm} is not a vm.`);
assert.isTrue(isArray(stylesheets), `Invalid stylesheets.`);
assert.isTrue(isString(hostAttribute), `Invalid stylesheet host attribute.`);
assert.isTrue(isString(shadowAttribute), `Invalid stylesheet shadow attribute.`);
}

const { fallback } = vm;
Expand Down

0 comments on commit 506bc50

Please sign in to comment.