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

describe('JsArray', function() {
  it('return a JsArray built in Rust', function () {
    assert.deepEqual([], addon.return_js_array());
  });

  it('return a JsArray with a number at index 0', function () {
    assert.deepEqual([9000], addon.return_js_array_with_number());
  });

  it('return a JsArray with an string at index 0', function () {
    assert.deepEqual(["hello node"], addon.return_js_array_with_string());
  });
});
