Skip to content

Commit

Permalink
Update app-spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermepontes committed Dec 13, 2015
1 parent 1880708 commit bc707c6
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions spec/app-spec.js
@@ -1,22 +1,24 @@
describe("Scope Tests", function() {
var context = describe;

context("Scope Tests", function() {
it("MyApp must exists", function() {
expect(MyApp).toBeDefined();
});

describe("Public methods", function(){
it("MyApp.init() must be PUBLIC", function() {
expect(MyApp.init).toBeDefined();
});
it("MyApp.init() must be PUBLIC", function() {
expect(MyApp.init).toBeDefined();
});

it("MyApp._cache() must be PUBLIC", function() {
expect(MyApp._cache).toBeDefined();
});
it("MyApp._cache() must be PUBLIC", function() {
expect(MyApp._cache).toBeDefined();
});
});

describe("Public properties", function(){
it("MyApp.body must be PUBLIC", function() {
expect(MyApp.body).toBeDefined();
});
it("MyApp.body must be PUBLIC", function() {
expect(MyApp.body).toBeDefined();
});

it("MyApp._cache must be PUBLIC", function() {
expect(MyApp._cache).toBeDefined();
Expand All @@ -28,12 +30,12 @@ describe("Scope Tests", function() {
});

describe("Private methods", function(){
it("MyApp.app must PRIVATE", function() {
expect(MyApp.application).toBeUndefined();
});
it("MyApp.app must PRIVATE", function() {
expect(MyApp.application).toBeUndefined();
});

it("MyApp._private must be PRIVATE", function() {
expect(MyApp._private).toBeUndefined();
});
it("MyApp._private must be PRIVATE", function() {
expect(MyApp._private).toBeUndefined();
});
});
});

0 comments on commit bc707c6

Please sign in to comment.