embark/demo/spec/contracts/simple_storage_spec.js

18 lines
421 B
JavaScript
Raw Normal View History

2015-06-15 06:26:38 -04:00
EmbarkSpec = require('embark-framework').Tests;
describe("SimpleStorage", function() {
beforeAll(function() {
SimpleStorage = EmbarkSpec.request("SimpleStorage", [150]);
});
it("should set constructor value", function() {
2015-06-20 08:36:40 -04:00
expect(SimpleStorage.storedData()).toEqual('150');
2015-06-15 06:26:38 -04:00
});
it("set storage value", function() {
SimpleStorage.set(100);
expect(SimpleStorage.get()).toEqual('100');
});
})