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

3.x - dev warning test should be skipped in production #441

Open
phillipskevin opened this issue Mar 12, 2018 · 0 comments
Open

3.x - dev warning test should be skipped in production #441

phillipskevin opened this issue Mar 12, 2018 · 0 comments

Comments

@phillipskevin
Copy link
Contributor

test("warn about using attributes to set values on the viewModel", function(){
var teardown = testHelpers.dev.willWarn("file.stache:1: foo=\"bar\" is deprecated. Use foo:from=\"'bar'\" instead.");
var ViewModel = DefaultMap.extend({
foo: {
type: "string"
}
});
MockComponent.extend({
tag: "test-elem",
viewModel: ViewModel
});
var template = stache("file.stache", "<test-elem foo=\"bar\" baz=\"qux\"/>");
template();
equal(teardown(), 1);// 1 because it should warn on foo and not baz
});

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

1 participant