Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorishermans committed Oct 14, 2014
1 parent a89774a commit c5ea36b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This file contains highlights of what changes on each version of the cargo packa

- Adding a copyTo method and an export method.
- Adding the method exportToFileStorage to the memory impl serverside.
- Still some work todo in indexDB implementation.

#### Pub version 0.4.0 ####

Expand Down
4 changes: 2 additions & 2 deletions test/server/memory_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:cargo/cargo_server.dart';

void main() {
// First tests!
Cargo storage = new Cargo(MODE: CargoMode.MEMORY);
MemoryCargo storage = new Cargo(MODE: CargoMode.MEMORY);
Cargo fileStorage = new Cargo(MODE: CargoMode.FILE, conf: {"path": "./"});

storage.start().then((_) {
Expand All @@ -19,7 +19,7 @@ void main() {

test('test memory save to file', () {
storage.add("data2", "value");
storage.saveToFileStorage(fileStorage);
storage.copyTo(fileStorage);
});

test('test loading from saved memory storage', () => expect(fileStorage.getItemSync("data2"), [["value"]]));
Expand Down

0 comments on commit c5ea36b

Please sign in to comment.