var addon = require('../native');
var assert = require('chai').assert;

describe('hello', function() {
  it('should export a greeting', function () {
    assert.equal(addon.greeting, "Hello, World!");
    assert.equal(addon.greeting, addon.greetingCopy);
  });

  it('should export global singletons for JS primitives', function () {
    assert.equal(addon.undefined, undefined);
    assert.ok(addon.hasOwnProperty('undefined'));
    assert.equal(addon.null, null);
    assert.equal(addon.true, true);
    assert.equal(addon.false, false);
  });
});

var addon = require('../native');
var assert = require('chai').assert;

describe('hello', function() {
  it('should export a greeting', function () {
    assert.strictEqual(addon.greeting, "Hello, World!");
    assert.strictEqual(addon.greeting, addon.greetingCopy);
  });

  it('should export global singletons for JS primitives', function () {
    assert.strictEqual(addon.undefined, undefined);
    assert.ok(addon.hasOwnProperty('undefined'));
    assert.strictEqual(addon.null, null);
    assert.strictEqual(addon.true, true);
    assert.strictEqual(addon.false, false);
  });
});

use strictEqual