jest.autoMockOff();
jest.unmock('../base.js');

const base = require('../base.js');

describe('Base', () => {
  it('does a lot of cool stuff', () => {
  });
});

@@ -78,16 +78,115 @@
 .js');%0A%0A
+jest.unmock('node-fetch');%0Aconst fetch = require('node-fetch');%0Aglobal.Response = fetch.Response;%0A%0A
 describe
@@ -206,48 +206,1760 @@
 %3E %7B%0A
+%0A
   it('
-does a lot of cool stuff', () =%3E %7B
+constructs correctly', () =%3E %7B%0A    let path = Object.create(null);%0A    let name = Object.create(null);%0A    let options = Object.create(null);%0A%0A    expect(path).not.toBe(name);%0A    expect(path).not.toBe(options);%0A    expect(name).not.toBe(options);%0A%0A    let bfs = new base.Base(name, path, options);%0A    expect(bfs).toBeDefined();%0A    expect(bfs.path).toBe(path);%0A    expect(bfs.name).toBe(name);%0A    expect(bfs.options).toBe(options);%0A  %7D);%0A%0A  it('does not stat paths', () =%3E %7B%0A    let path = Object.create(null);%0A    let name = Object.create(null);%0A    let options = Object.create(null);%0A    let bfs = new base.Base(name, path, options);%0A%0A    let ret = Object.create(null);%0A%0A    spyOn(Promise, 'resolve').and.returnValue(ret);%0A%0A    let val = bfs.stat('');%0A%0A    expect(Promise.resolve).toHaveBeenCalledWith(new Response(null, %7Bstatus: 405%7D));%0A    expect(val).toBe(ret);%0A  %7D);%0A%0A  it('does not read paths', () =%3E %7B%0A    let path = Object.create(null);%0A    let name = Object.create(null);%0A    let options = Object.create(null);%0A    let bfs = new base.Base(name, path, options);%0A%0A    let ret = Object.create(null);%0A%0A    spyOn(Promise, 'resolve').and.returnValue(ret);%0A%0A    let val = bfs.read('');%0A%0A    expect(Promise.resolve).toHaveBeenCalledWith(new Response(null, %7Bstatus: 405%7D));%0A    expect(val).toBe(ret);%0A  %7D);%0A%0A  it('does not write paths', () =%3E %7B%0A    let path = Object.create(null);%0A    let name = Object.create(null);%0A    let options = Object.create(null);%0A    let bfs = new base.Base(name, path, options);%0A%0A    let ret = Object.create(null);%0A%0A    spyOn(Promise, 'resolve').and.returnValue(ret);%0A%0A    let val = bfs.write('', '');%0A%0A    expect(Promise.resolve).toHaveBeenCalledWith(new Response(null, %7Bstatus: 405%7D));%0A    expect(val).toBe(ret);
 %0A  %7D

Add tests for Base fs