Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of .js fixtures #1

Closed
sraone opened this issue Nov 22, 2019 · 1 comment
Closed

Support of .js fixtures #1

sraone opened this issue Nov 22, 2019 · 1 comment

Comments

@sraone
Copy link
Contributor

sraone commented Nov 22, 2019

Description

Snapshot can't be created when the template is using await or {dyamic} body content. Using Javascript fixtures would solve this issue.

Why

//index.marko
<div>
  <await(input.model)>
	<@then|model|>
	  ${model}
	</@then>
  </await>
</div>
//fixtures/data.js
module.exports = {
  model: Promise.resolve('hello');
}

Is this something you're interested in working on?

Yes

@mlrawlings
Copy link
Member

published in 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants