const chai = require('chai');
const assert = chai.assert;
const ST = require('../lib/spacetime');
const $ = require('jquery');

describe('my test suite', function () {
    it('should work', function () {
        assert(true);
    });

    it('should add two plus two', function () {
        let four = 2 + 2;
        assert.equal(four,4);
    });

    it('should be deep equal', function (){
        let x = [1,2,3,];
        assert.deepEqual(x,[1,2,3]);
        //Deep equal checks order and content of arrays
    });
});

@@ -1,12 +1,26 @@
+%22use strict%22;%0A
 const chai =
@@ -18,16 +18,18 @@
 st chai 
+  
 = requir
@@ -76,16 +76,20 @@
 onst ST 
+    
 = requir
@@ -118,16 +118,21 @@
 %0Aconst $
+     
  = requi
@@ -160,21 +160,32 @@
 be('
-my test suite
+space-time functionality
 ', f
@@ -216,12 +216,23 @@
 uld 
-work
+have properties
 ', f
@@ -256,306 +256,611 @@
     
-assert(true);%0A
+let canvas = %7B%0A                        width: 800,%0A                        height: 500%0A                
     %7D
-);%0A
+;
 %0A    
-it('should add two plus two', function () %7B%0A        let four = 2 + 2;%0A        assert.equal(four,4);%0A    %7D);%0A%0A    it('should be deep equal', function ()%7B%0A        let x = %5B1,2,3,%5D;%0A        assert.deepEqual(x,%5B1,2,3%5D);%0A        //Deep equal checks order and content of arrays
+    let game   = %7B%0A                        asteroidQuantity: 5,%0A                        alienQuantity: 2%0A                    %7D;%0A%0A        let spaceTime = new ST(canvas, null, game);%0A%0A        assert.equal(spaceTime.asteroids.length, 5);%0A        assert.equal(spaceTime.aliens.length, 2);%0A        assert.equal(spaceTime.lasers.length, 0);%0A        assert.equal(spaceTime.alienLasers.length, 0);%0A        assert.equal(spaceTime.shields.length, 0);%0A        assert.equal(spaceTime.mines.length, 0);
 %0A   

Test spaceTime's initial properties