Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Created August 27, 2018 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleersoy/5a422c9056502d2e0f41973666466fb3 to your computer and use it in GitHub Desktop.
Save oleersoy/5a422c9056502d2e0f41973666466fb3 to your computer and use it in GitHub Desktop.
import { expect } from "chai";
import "mocha";
import {push} from './index';
describe("Push", () => {
it("should have four elements post push", () => {
const original = ['a', 'b'];
const result = ['a', 'b', 'c', 'd'];
expect(push(original, 'c', 'd')).to.eql(result);;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment