From 22eeae1a93762d0c38b5572a7993e76248ab94b2 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 4 Jan 2015 08:00:40 +1100 Subject: [PATCH] use `assert` instead of `expect` --- .../transformation/esnext-es6-rest-parameters/arrow-fn.js | 5 +---- .../transformation/esnext-es6-rest-parameters/declaration.js | 5 +---- .../transformation/esnext-es6-rest-parameters/rest.js | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/test/fixtures/transformation/esnext-es6-rest-parameters/arrow-fn.js b/test/fixtures/transformation/esnext-es6-rest-parameters/arrow-fn.js index 34c96f5ecb..eb9d8ea8c5 100644 --- a/test/fixtures/transformation/esnext-es6-rest-parameters/arrow-fn.js +++ b/test/fixtures/transformation/esnext-es6-rest-parameters/arrow-fn.js @@ -1,8 +1,5 @@ -/* jshint esnext: true */ -/* global expect */ - var join = (joinStr, ...items) => { return items.join(joinStr); }; -expect(join(' ', 'a', 'b', 'c')).to.equal('a b c'); +assert.deepEqual(join(' ', 'a', 'b', 'c'), 'a b c'); diff --git a/test/fixtures/transformation/esnext-es6-rest-parameters/declaration.js b/test/fixtures/transformation/esnext-es6-rest-parameters/declaration.js index 1cc45ac46f..2d3ca5d283 100644 --- a/test/fixtures/transformation/esnext-es6-rest-parameters/declaration.js +++ b/test/fixtures/transformation/esnext-es6-rest-parameters/declaration.js @@ -1,8 +1,5 @@ -/* jshint esnext: true */ -/* global expect */ - function join(joinStr, ...items) { return items.join(joinStr); } -expect(join(' ', 'a', 'b', 'c')).to.equal('a b c'); +assert.deepEqual(join(' ', 'a', 'b', 'c'), 'a b c'); diff --git a/test/fixtures/transformation/esnext-es6-rest-parameters/rest.js b/test/fixtures/transformation/esnext-es6-rest-parameters/rest.js index 9d0e63e85d..769bf2d2a4 100644 --- a/test/fixtures/transformation/esnext-es6-rest-parameters/rest.js +++ b/test/fixtures/transformation/esnext-es6-rest-parameters/rest.js @@ -1,8 +1,5 @@ -/* jshint esnext: true */ -/* global expect */ - var join = function(joinStr, ...items) { return items.join(joinStr); }; -expect(join(' ', 'a', 'b', 'c')).to.equal('a b c'); +assert.deepEqual(join(' ', 'a', 'b', 'c'), 'a b c');