Index: test/filterStorage_readwrite.js |
=================================================================== |
--- a/test/filterStorage_readwrite.js |
+++ b/test/filterStorage_readwrite.js |
@@ -165,17 +165,17 @@ |
let importer = FilterStorage.importData(); |
for (let line of lines) |
importer(line); |
importer(null); |
test.equal(FilterStorage.fileProperties.version, FilterStorage.formatVersion, "File format version"); |
- let exported = Array.from(FilterStorage.exportData()); |
+ let exported = [...FilterStorage.exportData()]; |
test.deepEqual(canonize(exported), canonize(lines), "Import/export result"); |
}).catch(unexpectedError.bind(test)).then(() => test.done()); |
}; |
exports.testSavingWithoutBackups = function(test) |
{ |
Prefs.patternsbackups = 0; |
Prefs.patternsbackupinterval = 24; |