added angularjs test configs

This commit is contained in:
Mario Colque 2014-04-23 13:21:33 -03:00
commit 178dfec1a8
8 changed files with 81 additions and 6 deletions

1
test/lib/chai-expect.js Normal file
View file

@ -0,0 +1 @@
var expect = chai.expect;

1
test/lib/chai-should.js Normal file
View file

@ -0,0 +1 @@
var should = chai.should();

1
test/mocha.conf.js Normal file
View file

@ -0,0 +1 @@
window.mocha.setup({ timeout: 5000 });

View file

@ -0,0 +1,36 @@
//
// test/unit/controllers/controllersSpec.js
//
describe("Unit: Testing Controllers", function() {
beforeEach(angular.mock.module('copay'));
it('should have a AddressesController controller', function() {
expect(copay.AddressesController).not.to.equal(null);
});
it('should have a BackupController controller', function() {
expect(copay.Backupcontroller).not.to.equal(null);
});
it('should have a HeaderController controller', function() {
expect(copay.HeaderController).not.to.equal(null);
});
it('should have a SendController controller', function() {
expect(copay.SendController).not.to.equal(null);
});
it('should have a SetupController controller', function() {
expect(copay.SetupController).not.to.equal(null);
});
it('should have a SigninController controller', function() {
expect(copay.SigninController).not.to.equal(null);
});
it('should have a TransactionsController controller', function() {
expect(copay.TransactionsController).not.to.equal(null);
});
});

View file

@ -0,0 +1,6 @@
//
// test/unit/directives/directivesSpec.js
//
describe("Unit: Testing Directives", function() {
});

View file

@ -0,0 +1,6 @@
//
// test/unit/filters/filtersSpec.js
//
describe("Unit: Testing Filters", function() {
});

View file

@ -0,0 +1,6 @@
//
// test/unit/services/servicesSpec.js
//
describe("Unit: Testing Services", function() {
});