From 0771418c23003d91495fc7e473ee4b4f9293a580 Mon Sep 17 00:00:00 2001 From: Mathias Paumgarten Date: Fri, 8 Nov 2019 11:48:34 -0800 Subject: [PATCH] v1.2.2 --- bower.json | 2 +- package-lock.json | 2 +- package.json | 2 +- src/index.js | 4 +-- tests/spec/array/spec-repeat.js | 56 ++++++++++++++++++--------------- 5 files changed, 35 insertions(+), 31 deletions(-) diff --git a/bower.json b/bower.json index d76ae851..9e7b00f3 100644 --- a/bower.json +++ b/bower.json @@ -40,5 +40,5 @@ "type": "git", "url": "git://github.com/mout/mout.git" }, - "version": "1.2.1" + "version": "1.2.2" } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ea2b8830..b225f090 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mout", - "version": "1.2.0", + "version": "1.2.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e0100693..7f4d7896 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mout", "description": "Modular Utilities", - "version": "1.2.1", + "version": "1.2.2", "homepage": "http://moutjs.com/", "author": "Miller Medeiros (http://blog.millermedeiros.com)", "contributors": [ diff --git a/src/index.js b/src/index.js index 4d1d203c..a691f573 100644 --- a/src/index.js +++ b/src/index.js @@ -1,12 +1,12 @@ /**@license - * mout v1.1.1 | http://moutjs.com | MIT license + * mout v1.2.2 | http://moutjs.com | MIT license */ define(function(require){ //automatically generated, do not edit! //run `node build` instead return { - 'VERSION' : '1.1.1', + 'VERSION' : '1.2.2', 'array' : require('./array'), 'collection' : require('./collection'), 'date' : require('./date'), diff --git a/tests/spec/array/spec-repeat.js b/tests/spec/array/spec-repeat.js index b34993da..8a1d2c99 100644 --- a/tests/spec/array/spec-repeat.js +++ b/tests/spec/array/spec-repeat.js @@ -1,37 +1,41 @@ define(['mout/array/repeat'], function (repeat) { - describe('array/repeat()', function(){ + describe('array/repeat()', function () { - it('should create an array of size 0.', function(){ - expect(repeat(0, 'a')).toEqual([]); - }); + it('should create an array of size 0.', function () { + expect( repeat(0, 'a') ).toEqual([]); + }); - it('should create an array of size 1 and fill with null.', function(){ - expect(repeat(1, null)).toEqual([null]); - }); - - it('should create an array of size 1 and fill with a value "a".', function(){ - expect(repeat(1, 'a')).toEqual(['a']); - }); + it('should create an array of size 1 and fill with null.', function () { + expect( repeat(1, null) ).toEqual([null]); + }); - it('should create an array of size N and fill with a value "a".', function(){ - expect(repeat(2, 'a')).toEqual(['a', 'a']); - }); + it('should create an array of size 1 and fill with a value "a".', function () { + expect( repeat(1, 'a') ).toEqual(['a']); + }); - it('should create an array of size N and fill with values "albatros".', function(){ - expect(repeat(2, 'albatros')).toEqual(['albatros', 'albatros']); - }); + it('should create an array of size N and fill with a value "a".', function () { + expect( repeat(2, 'a') ).toEqual(['a', 'a']); + }); - it('should create an array of size N and fill with a number 1.', function(){ - expect(repeat(2, 1)).toEqual([1, 1]); - }); + it('should create an array of size N and fill with array.', function () { + expect( repeat(5, 'abc') ).toEqual(['abc', 'abc', 'abc', 'abc', 'abc']); + }); - it('should create an array of size N and fill with array.', function(){ - expect(repeat(2, [1])).toEqual([[1], [1]]); - }); + it('should create an array of size N and fill with values "albatros".', function () { + expect( repeat(2, 'albatros') ).toEqual(['albatros', 'albatros']); + }); + + it('should create an array of size N and fill with a number 1.', function () { + expect( repeat(2, 1) ).toEqual([1, 1]); + }); + + it('should create an array of size N and fill with array.', function () { + expect( repeat(2, [1]) ).toEqual([[1], [1]]); + }); - it('should throw an exception in case the of a negative number.', function(){ - expect(() => repeat(-1, null)).toThrow(); + it('should throw an exception in case the of a negative number.', function () { + expect( function () { repeat(-1, null) } ).toThrow(); + }); }); - }); });