mirror of https://github.com/embarklabs/embark.git
18 lines
421 B
JavaScript
18 lines
421 B
JavaScript
EmbarkSpec = require('embark-framework').Tests;
|
|
|
|
describe("SimpleStorage", function() {
|
|
beforeAll(function() {
|
|
SimpleStorage = EmbarkSpec.request("SimpleStorage", [150]);
|
|
});
|
|
|
|
it("should set constructor value", function() {
|
|
expect(SimpleStorage.storedData()).toEqual('150');
|
|
});
|
|
|
|
it("set storage value", function() {
|
|
SimpleStorage.set(100);
|
|
expect(SimpleStorage.get()).toEqual('100');
|
|
});
|
|
|
|
})
|