Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Commit

Permalink
renamed test file
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallen23 committed Oct 10, 2012
1 parent 569beba commit f34e5f6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/obbie.test.js → test/thrive.test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var assert = require('assert')

var Obbie = require('../');
var Thrive = require('../');

suite('obbie', function() {
suite('Thrive', function() {


suite('#extend', function() {

test('init is called', function() {
var Cls = Obbie.extend({
var Cls = Thrive.extend({
init: function() {
this.initWasCalled = true;
}
Expand All @@ -19,7 +19,7 @@ suite('obbie', function() {
});

test('pass in params', function() {
var Cls = Obbie.extend({});
var Cls = Thrive.extend({});
var ob = new Cls({ test: false, debug: true });

assert.equal(ob.test, false);
Expand All @@ -29,11 +29,11 @@ suite('obbie', function() {

test('instanceof', function() {

var Cls = Obbie.extend({});
var Cls = Thrive.extend({});

var c = new Cls();
assert.equal(c instanceof Cls, true);
assert.equal(c instanceof Obbie, true);
assert.equal(c instanceof Thrive, true);
});

});
Expand All @@ -42,7 +42,7 @@ suite('obbie', function() {

test('basic inheritance', function() {

var Foo = Obbie.extend({
var Foo = Thrive.extend({
fooMethod: function() {
this.fooMethodWasCalled = true;
}
Expand All @@ -62,7 +62,7 @@ suite('obbie', function() {
});

test('calling super', function() {
var Foo = Obbie.extend({
var Foo = Thrive.extend({
fooMethod: function() {
this.fooMethodWasCalled = true;
}
Expand All @@ -83,13 +83,13 @@ suite('obbie', function() {

});

suite('extending Obbie', function() {
suite('extending Thrive', function() {

test('adding to prototype', function() {
Obbie.prototype.testMe = function() {
Thrive.prototype.testMe = function() {
this.testMeWasCalled = true;
}
var Foo = Obbie.extend({});
var Foo = Thrive.extend({});
var foo = new Foo();
foo.testMe();
assert.equal(foo.testMeWasCalled, true);
Expand All @@ -101,7 +101,7 @@ suite('obbie', function() {
suite('#proxy', function() {
test('maintain scope', function(done) {

var Foo = Obbie.extend({
var Foo = Thrive.extend({
init: function() {
setTimeout(this.proxy(this.method, 1, 2, 3), 10);
},
Expand Down

0 comments on commit f34e5f6

Please sign in to comment.