Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
unit test
  • Loading branch information
pmverdugo committed Apr 17, 2015
1 parent 462d818 commit 9572b87
Show file tree
Hide file tree
Showing 133 changed files with 5,039 additions and 0 deletions.
28 changes: 28 additions & 0 deletions package.json
@@ -0,0 +1,28 @@
{
"name": "vish_editor",
"version": "1.0.0",
"description": "HTML5 application to create web presentations in a simple and friendly way",
"main": "VISH.js",
"directories": {
"example": "examples",
"test": "test"
},
"dependencies": {},
"devDependencies": {
"chai": "^2.2.0",
"mocha": "^2.2.4"
},
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/ging/vish_editor.git"
},
"author": "",
"license": "Affero",
"bugs": {
"url": "https://github.com/ging/vish_editor/issues"
},
"homepage": "https://github.com/ging/vish_editor"
}
20 changes: 20 additions & 0 deletions test/VISH.Addons.IframeMessenger.test.js
@@ -0,0 +1,20 @@
var chai = require("chai");
chai.should();

require("./helpers/listdeps.js");

describe("VISH.Addons.IframeMessenger", function(){

//// OBJECT CREATION

it('should create a VISH.Addons.IframeMessenger object', function(){
VISH.Addons.IframeMessenger.should.be.an.instanceof(Object);
});

//// EXPORTED METHODS

it('should export init function', function(){
VISH.Addons.IframeMessenger.should.have.property('init');
});

});
20 changes: 20 additions & 0 deletions test/VISH.Addons.test.js
@@ -0,0 +1,20 @@
var chai = require("chai");
chai.should();

require("./helpers/listdeps.js");

describe("VISH.Addons", function(){

//// OBJECT CREATION

it('should create a VISH.Addons object', function(){
VISH.Addons.should.be.an.instanceof(Object);
});

//// EXPORTED METHODS

it('should export init function', function(){
VISH.Addons.should.have.property('init');
});

});
20 changes: 20 additions & 0 deletions test/VISH.Animations.test.js
@@ -0,0 +1,20 @@
var chai = require("chai");
chai.should();

require("./helpers/listdeps.js");

describe("VISH.Animations", function(){

//// OBJECT CREATION

it('should create a VISH.Animations object', function(){
VISH.Animations.should.be.an.instanceof(Object);
});

//// EXPORTED METHODS

it('should export loadAnimation function', function(){
VISH.Animations.should.have.property('loadAnimation');
});

});
14 changes: 14 additions & 0 deletions test/VISH.AppletPlayer.test.js
@@ -0,0 +1,14 @@
var chai = require("chai");
chai.should();

require("./helpers/listdeps.js");

describe("VISH.AppletPlayer", function(){

//// OBJECT CREATION

it('should create a VISH.AppletPlayer object', function(){
VISH.AppletPlayer.should.be.an.instanceof(Object);
});

});
40 changes: 40 additions & 0 deletions test/VISH.Audio.HTML5.test.js
@@ -0,0 +1,40 @@
var chai = require("chai");
chai.should();

require("./helpers/listdeps.js");

describe("VISH.Audio.HTML5", function(){

//// OBJECT CREATION

it('should create a VISH.Audio.HTML5 object', function(){
VISH.Audio.HTML5.should.be.an.instanceof(Object);
});

//// EXPORTED METHODS

it('should export init function', function(){
VISH.Audio.HTML5.should.have.property('init');
});

it('should export renderAudioFromJSON function', function(){
VISH.Audio.HTML5.should.have.property('renderAudioFromJSON');
});

it('should export getSourcesFromJSON function', function(){
VISH.Audio.HTML5.should.have.property('getSourcesFromJSON');
});

it('should export getAudioMimeType function', function(){
VISH.Audio.HTML5.should.have.property('getAudioMimeType');
});

//// METHOD RETURNS

describe("#getSourcesFromJSON", function(){
it('should return external object', function(){
VISH.Audio.HTML5.getSourcesFromJSON("audioJSON").should.eql([]);
})
});

});
20 changes: 20 additions & 0 deletions test/VISH.Audio.test.js
@@ -0,0 +1,20 @@
var chai = require("chai");
chai.should();

require("./helpers/listdeps.js");

describe("VISH.Audio", function(){

//// OBJECT CREATION

it('should create a VISH.Audio object', function(){
VISH.Audio.should.be.an.instanceof(Object);
});

//// EXPORTED METHODS

it('should export init function', function(){
VISH.Audio.should.have.property('init');
});

});
24 changes: 24 additions & 0 deletions test/VISH.Configuration.test.js
@@ -0,0 +1,24 @@
var chai = require("chai");
chai.should();

require("./helpers/listdeps.js");

describe("VISH.Configuration", function(){

//// OBJECT CREATION

it('should create a VISH.Configuration object', function(){
VISH.Configuration.should.be.an.instanceof(Object);
});

//// EXPORTED METHODS

it('should export init function', function(){
VISH.Configuration.should.have.property('init');
});

it('should export getConfiguration function', function(){
VISH.Configuration.should.have.property('getConfiguration');
});

});

0 comments on commit 9572b87

Please sign in to comment.