all files / binary-pack/ test.js

100% Statements 7/7
100% Branches 0/0
100% Functions 3/3
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20                          
describe('binary-pack', function () {
  'use strict';
 
  var binarypack = require('binarypack')
    , read = require('fs').readFileSync
    , join = require('path').join
    , assert = require('assert')
    , bpack = require('./');
 
  it('exports the server-side component', function () {
    assert.strictEqual(bpack, binarypack);
  });
 
  it('exports the client-side component', function () {
    var source = read(join(__dirname, 'vendor/binarypack.js'), 'utf-8');
 
    assert.strictEqual(bpack.BrowserSource, source);
  });
});