Compare commits

...

1 commit

Author SHA1 Message Date
Matthew Phillips
7d9281b961 Start of a test 2021-06-21 09:39:01 -04:00
3 changed files with 27 additions and 0 deletions

View file

@ -82,4 +82,11 @@ Expressions('Does not render falsy values using &&', async ({ runtime }) => {
assert.equal($('#undefined').length, 0, `Expected {undefined && <span id="undefined" />} not to render`);
});
Expressions.only('Followed by an element', async ({ runtime }) => {
const result = await runtime.load('/before-el');
if (result.error) throw new Error(result.error);
console.log(result.contents);
});
Expressions.run();

View file

@ -0,0 +1,15 @@
---
let title = 'My App';
let colors = ['red', 'yellow', 'blue'];
---
<html>
<head>
<title>{title}</title>
</head>
<body>
{true ? colors.map(color => <div>{color}</div>) : null}
<span>Something</span>
</body>
</html>

View file

@ -1483,6 +1483,11 @@
resolved "https://registry.yarnpkg.com/@types/parse5/-/parse5-5.0.3.tgz#e7b5aebbac150f8b5fdd4a46e7f0bd8e65e19109"
integrity sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw==
"@types/prettier@^2.2.1":
version "2.3.0"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.3.0.tgz#2e8332cc7363f887d32ec5496b207d26ba8052bb"
integrity sha512-hkc1DATxFLQo4VxPDpMH1gCkPpBbpOoJ/4nhuXw4n63/0R6bCpQECj4+K226UJ4JO/eJQz+1mC2I7JsWanAdQw==
"@types/prompts@^2.0.12":
version "2.0.12"
resolved "https://registry.yarnpkg.com/@types/prompts/-/prompts-2.0.12.tgz#5cc1557f88e4d69dad93230fff97a583006f858b"