// Copyright (c) 2017 The Regents of the University of Michigan.
// All Rights Reserved. Licensed according to the terms of the Revised
// BSD License. See LICENSE.txt for details.

module.exports = function() {
  return {
    "readdir": () => {},
    "stat": (filename, callback) => {
      callback("error");
    }
  };
};

// Copyright (c) 2017 The Regents of the University of Michigan.
// All Rights Reserved. Licensed according to the terms of the Revised
// BSD License. See LICENSE.txt for details.

module.exports = function() {
  let fsMock = {};

  fsMock.readdir = () => {};

  fsMock.stat = (filename, callback) => {
    callback("error");
  };

  return fsMock;
};

Define methods in more-readable syntax
:muscle: Define methods in more-readable syntax
