', async t => {
const actual = `{{ optionFoo }}`;
const expected = ` Locals attribute: undefined Locals option: optionBar optionBar
`;
- const html = await posthtml().use(plugin({locals: {optionFoo: 'optionBar'}})).process(actual).then(result => clean(result.html));
+ const html = await posthtml().use(plugin({locals: {optionFoo: 'optionBar'}, expressions: {strictMode: false}})).process(actual).then(result => clean(result.html));
t.is(html, expected);
});
@@ -171,7 +171,7 @@ test('Must work with locals provided in options but no content passed', async t
const actual = ``;
const expected = ` Locals attribute: undefined Locals option: optionBar
`;
- const html = await posthtml().use(plugin({locals: {optionFoo: 'optionBar'}})).process(actual).then(result => clean(result.html));
+ const html = await posthtml().use(plugin({locals: {optionFoo: 'optionBar'}, expressions: {strictMode: false}})).process(actual).then(result => clean(result.html));
t.is(html, expected);
});