This commit is contained in:
Myk Melez 2014-12-16 23:58:30 -08:00
Родитель 0df8774625
Коммит 8e087c16c8
3 изменённых файлов: 27 добавлений и 45 удалений

Просмотреть файл

@ -97,3 +97,28 @@ function checkFilesByDir() {
checkNextDir();
});
}
// The complete list of paths we expect to find in the filesystem.
// We check that they all exist.
var paths = [
"/",
"/Persistent",
"/_main.ks",
];
// The files we expect to find in the filesystem, indexed by parent dir.
// We check that the directories have the files we expect to find in them.
var filesByDir = {
"/": [
"Persistent",
"_main.ks",
],
"/Persistent": [],
};
function testInit() {
checkPaths();
checkFilesByDir();
next();
}

Просмотреть файл

@ -5,29 +5,7 @@
var APP_BASE_DIR = "../../";
// The complete list of paths we expect to find in the filesystem.
// We check that they all exist.
var paths = [
"/",
"/Persistent",
"/_main.ks",
];
// The files we expect to find in the filesystem, indexed by parent dir.
// We check that the directories have the files we expect to find in them.
var filesByDir = {
"/": [
"Persistent",
"_main.ks",
],
"/Persistent": [],
};
checkPaths();
checkFilesByDir();
initFS.then(function() {
// We changed the name between versions, so use whichever is available.
(fs.syncStore || fs.storeSync)(next);
(fs.syncStore || fs.storeSync)(testInit);
});

Просмотреть файл

@ -3,25 +3,4 @@
"use strict";
// The complete list of paths we expect to find in the filesystem.
// We check that they all exist.
var paths = [
"/",
"/Persistent",
"/_main.ks",
];
// The files we expect to find in the filesystem, indexed by parent dir.
// We check that the directories have the files we expect to find in them.
var filesByDir = {
"/": [
"Persistent",
"_main.ks",
],
"/Persistent": [],
};
checkPaths();
checkFilesByDir();
fs.init(next);
fs.init(testInit);