1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-20 15:16:38 +00:00

ProjectFilesystem class

This commit is contained in:
Steven Hugg
2021-04-06 11:37:41 -05:00
parent c5ccd4ff48
commit ed5dbed871
5 changed files with 100 additions and 76 deletions
+4 -2
View File
@@ -17,7 +17,9 @@ var test_platform_id = "_TEST";
function newGH(store, platform_id) {
localStorage.clear();
// pzpinfo user
var project = new prj.CodeProject({}, platform_id||test_platform_id, null, store);
var pid = platform_id||test_platform_id;
var fs = new prj.LocalForageFilesystem(store, new prj.NullFilesystem());
var project = new prj.CodeProject({}, pid, null, fs);
project.mainPath = 'local/main.asm';
project.updateFileInStore(project.mainPath, '\torg $0 ; test\n');
return new serv.GithubService(Octokat, process.env.TEST8BIT_GITHUB_TOKEN, store, project);
@@ -25,7 +27,7 @@ function newGH(store, platform_id) {
const t0 = new Date().getTime();
describe('Store', function() {
describe('Github', function() {
it('Should import from Github (check README)', function(done) {
var store = mstore.createNewPersistentStore('vcs', function(store) {