diff options
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/browser/array.spec.js')
-rw-r--r-- | tests/lib/mocha-3.1.0/test/browser/array.spec.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/lib/mocha-3.1.0/test/browser/array.spec.js b/tests/lib/mocha-3.1.0/test/browser/array.spec.js deleted file mode 100644 index 26404f6a90..0000000000 --- a/tests/lib/mocha-3.1.0/test/browser/array.spec.js +++ /dev/null @@ -1,38 +0,0 @@ -describe('Array', function(){ - describe('#push()', function(){ - it('should append a value', function(){ - foo = 'asdf' - var arr = []; - arr.push('foo'); - arr.push('bar'); - arr.push('baz'); - assert('foo' == arr[0]); // to test indentation - assert('bar' == arr[1]); - assert('baz' == arr[2]); - }) - - it('should return the length', function(){ - var arr = []; - assert(1 == arr.push('foo')); - assert(2 == arr.push('bar')); - assert(3 == arr.push('baz')); - }) - }) -}) - -describe('Array', function(){ - describe('#pop()', function(){ - it('should remove and return the last value', function(){ - var arr = [1,2,3]; - assert(arr.pop() == 3); - assert(arr.pop() == 2); - assert(arr.pop() == -1); - }) - - it('should adjust .length', function(){ - var arr = [1,2,3]; - arr.pop(); - assert(arr.length == 2); - }) - }) -}) |