Skip to content

Commit

Permalink
fix(tests): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkaron committed Oct 16, 2016
1 parent 186b686 commit c5e320b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@

QUnit.test("proto instance", function (assert) {
assert.expect(1);
var p = {};

var p = {};
var C = create(proto)({
"proto": p
});
Expand All @@ -146,8 +146,8 @@

QUnit.test("prototype instance", function (assert) {
assert.expect(1);
var p = {};

var p = {};
var C = create(proto)({
"prototype": p
});
Expand All @@ -157,11 +157,11 @@

QUnit.test("prototype property", function (assert) {
assert.expect(1);

var p = {
"a": 1,
"b": 2
}

};
var C = create(proto)(p);

assert.propEqual(C.prototype, p, "properies are equal");
Expand All @@ -170,8 +170,7 @@
QUnit.test("regexp", function (assert) {
assert.expect(2);

function handler() {
}
function handler() {}

var C = create(regexp(/^on:(.+)/, function (r, data, type) {
assert.deepEqual(type, "test");
Expand Down Expand Up @@ -224,7 +223,6 @@
assert.expect(4);

var o = {};

var C = create(construct)(
function () {
return false;
Expand Down

0 comments on commit c5e320b

Please sign in to comment.