ES6: Convert all test files over

This commit is contained in:
Robin Ward
2014-08-06 17:50:39 -04:00
parent 1530f33833
commit f977843391
52 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,20 @@
var store = Discourse.KeyValueStore;
module("Discourse.KeyValueStore", {
setup: function() {
store.init("test");
}
});
test("it's able to get the result back from the store", function() {
store.set({ key: "bob", value: "uncle" });
equal(store.get("bob"), "uncle");
});
test("is able to nuke the store", function() {
store.set({ key: "bob1", value: "uncle" });
store.abandonLocal();
localStorage.a = 1;
equal(store.get("bob1"), void 0);
equal(localStorage.a, "1");
});