Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
Fix indentation issues. (I hate Windows so much it hurts sometimes.)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstade committed Jan 31, 2015
1 parent f6c6a9a commit 48b97b1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions lib/type.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function type(x) {
var proto = Object.getPrototypeOf(x)

if (type(proto) === 'function' && proto.name) {
return proto.name
return proto.name
} else if (x.constructor && x.constructor.name) {
return x.constructor.name
return x.constructor.name
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/defprop.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe("`defprop`", function() {
, function(field) {
var target = {}
defprop(target, field, { field: { enumerable: true } })
expect(target).to.have.key('field')
expect(target).to.have.property('field')
}
)
})
Expand Down
2 changes: 1 addition & 1 deletion test/defprotocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('defprotocol', function() {
, rest : []
})

expect(Seq).to.be.a('function')
expect(Seq).to.be.a(Function)
expect(Seq.name).to.equal('Protocol')
})

Expand Down
54 changes: 27 additions & 27 deletions test/is.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,29 @@ describe('is', function() {
describe('when given two arguments that are identical', function() {
it('should return `true`', function() {
each(
[ true, false,
, -1, 0, 1, 3.14
, '', 'wibble'
, [], [1, 2, 3]
, {}, { foo: 1 }
, Function
, null, undefined
]
, function(x) {
expect(is(x, x)).to.be.true
}
[ true, false,
, -1, 0, 1, 3.14
, '', 'wibble'
, [], [1, 2, 3]
, {}, { foo: 1 }
, Function
, null, undefined
]
, function(x) {
expect(is(x, x)).to.be.true
}
)
})
})

describe('when testing for booleans', function() {
each([ true, false ], function(x) {
describe('and when `x = '+x+'`', function() {
it('should return true', function() {
expect(is(Boolean, x)).to.be.true
expect(is('boolean', x)).to.be.true
})
})
describe('and when `x = '+x+'`', function() {
it('should return true', function() {
expect(is(Boolean, x)).to.be.true
expect(is('boolean', x)).to.be.true
})
})
}
)

Expand All @@ -73,12 +73,12 @@ describe('is', function() {
]
,
function(x) {
describe('and when `x = '+src(x)+'`', function() {
it('should return false', function() {
expect(is(Boolean, x)).to.be.false
expect(is('boolean', x)).to.be.false
})
})
describe('and when `x = '+src(x)+'`', function() {
it('should return false', function() {
expect(is(Boolean, x)).to.be.false
expect(is('boolean', x)).to.be.false
})
})
}
)
})
Expand All @@ -99,7 +99,7 @@ describe('is', function() {
]
,
function(x) {
var n = is(Array, x)? x[1] : src(x)
var n = is(Array, x)? x[1] : src(x)

is(Array, x) && (x = x[0])

Expand Down Expand Up @@ -256,7 +256,7 @@ describe('is', function() {
]
,
function(x) {
var n = is(Array, x)? x[1] : src(x)
var n = is(Array, x)? x[1] : src(x)

is(Array, x) && (x = x[0])

Expand Down Expand Up @@ -288,7 +288,7 @@ describe('is', function() {
]
,
function(x) {
var n = is(Array, x)? x[1] : src(x)
var n = is(Array, x)? x[1] : src(x)

is(Array, x) && (x = x[0])

Expand Down Expand Up @@ -317,7 +317,7 @@ describe('is', function() {
]
,
function(x) {
var n = is(Array, x)? x[1] : src(x)
var n = is(Array, x)? x[1] : src(x)

is(Array, x) && (x = x[0])

Expand Down

0 comments on commit 48b97b1

Please sign in to comment.