Blame test.js

Jared K. Smith 4f06173
'ust strict';
Jared K. Smith 4f06173
Jared K. Smith 4f06173
var assert = require('assert');
Jared K. Smith 4f06173
var read = require('./');
Jared K. Smith 4f06173
Jared K. Smith 4f06173
describe('read-file', function () {
Jared K. Smith 4f06173
  it('should read the file synchronously:', function () {
Jared K. Smith 4f06173
    assert.equal(read.sync('fixtures/a.txt'), 'FILE CONTENTS!!!');
Jared K. Smith 4f06173
  });
Jared K. Smith 4f06173
Jared K. Smith 4f06173
  it('should read the file:', function (done) {
Jared K. Smith 4f06173
    read('fixtures/a.txt', function (err, str) {
Jared K. Smith 4f06173
      assert.equal(str, 'FILE CONTENTS!!!');
Jared K. Smith 4f06173
      done();
Jared K. Smith 4f06173
    });
Jared K. Smith 4f06173
  });
Jared K. Smith 4f06173
});