Index: test/filterStorage_readwrite.js |
=================================================================== |
--- a/test/filterStorage_readwrite.js |
+++ b/test/filterStorage_readwrite.js |
@@ -96,17 +96,17 @@ |
return testData.then(data => |
{ |
IO._setFileContents(FilterStorage.sourceFile, data); |
return FilterStorage.loadFromDisk(); |
}).then(() => |
{ |
test.ok(FilterStorage.initialized, "Initialize after the first load"); |
- test.equal(FilterStorage.fileProperties.version, FilterStorage.formatVersion, "File format version"); |
+ test.equal(FilterStorage.fileProperties.get("version"), FilterStorage.formatVersion, "File format version"); |
if (withExternal) |
{ |
{ |
let subscription = new ExternalSubscription("~external~external subscription ID", "External subscription"); |
subscription.filters = [Filter.fromText("foo"), Filter.fromText("bar")]; |
FilterStorage.addSubscription(subscription); |
} |
@@ -143,17 +143,17 @@ |
if (lines.length && lines[lines.length - 1] == "") |
lines.pop(); |
let importer = FilterStorage.importData(); |
for (let line of lines) |
importer(line); |
importer(null); |
- test.equal(FilterStorage.fileProperties.version, FilterStorage.formatVersion, "File format version"); |
+ test.equal(FilterStorage.fileProperties.get("version"), FilterStorage.formatVersion, "File format version"); |
let exported = Array.from(FilterStorage.exportData()); |
test.deepEqual(canonize(exported), canonize(lines), "Import/export result"); |
}).catch(unexpectedError.bind(test)).then(() => test.done()); |
}; |
exports.testSavingWithoutBackups = function(test) |
{ |