Skip to content

Commit

Permalink
warns if using the old store form
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer committed Nov 9, 2017
1 parent a10f7fc commit 9958a39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions store.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Store.make = function (count, make, algebra) {
isNew = true;
}
if(!isNew) {
console.warn("can-fixture: This form ( `fixture(count, make, filter)` ) of making a store is deprecated. Please use the algebra-based form.");
return legacyStore.apply(this, arguments);
}

Expand Down
2 changes: 1 addition & 1 deletion test/test.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<title>can-fixture fixture</title>
<script src="../node_modules/steal/steal.js" main="test/fixture_test"></script>
<script src="../node_modules/steal/steal.js" main="can-fixture/test/fixture_test"></script>
<div id="qunit-fixture"></div>

0 comments on commit 9958a39

Please sign in to comment.