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

Commit 48b97b1

Browse files
committed
Fix indentation issues. (I hate Windows so much it hurts sometimes.)
1 parent f6c6a9a commit 48b97b1

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

lib/type.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ function type(x) {
1212
var proto = Object.getPrototypeOf(x)
1313

1414
if (type(proto) === 'function' && proto.name) {
15-
return proto.name
15+
return proto.name
1616
} else if (x.constructor && x.constructor.name) {
17-
return x.constructor.name
17+
return x.constructor.name
1818
}
1919
}
2020
}

test/defprop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe("`defprop`", function() {
132132
, function(field) {
133133
var target = {}
134134
defprop(target, field, { field: { enumerable: true } })
135-
expect(target).to.have.key('field')
135+
expect(target).to.have.property('field')
136136
}
137137
)
138138
})

test/defprotocol.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('defprotocol', function() {
1414
, rest : []
1515
})
1616

17-
expect(Seq).to.be.a('function')
17+
expect(Seq).to.be.a(Function)
1818
expect(Seq.name).to.equal('Protocol')
1919
})
2020

test/is.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@ describe('is', function() {
3636
describe('when given two arguments that are identical', function() {
3737
it('should return `true`', function() {
3838
each(
39-
[ true, false,
40-
, -1, 0, 1, 3.14
41-
, '', 'wibble'
42-
, [], [1, 2, 3]
43-
, {}, { foo: 1 }
44-
, Function
45-
, null, undefined
46-
]
47-
, function(x) {
48-
expect(is(x, x)).to.be.true
49-
}
39+
[ true, false,
40+
, -1, 0, 1, 3.14
41+
, '', 'wibble'
42+
, [], [1, 2, 3]
43+
, {}, { foo: 1 }
44+
, Function
45+
, null, undefined
46+
]
47+
, function(x) {
48+
expect(is(x, x)).to.be.true
49+
}
5050
)
5151
})
5252
})
5353

5454
describe('when testing for booleans', function() {
5555
each([ true, false ], function(x) {
56-
describe('and when `x = '+x+'`', function() {
57-
it('should return true', function() {
58-
expect(is(Boolean, x)).to.be.true
59-
expect(is('boolean', x)).to.be.true
60-
})
61-
})
56+
describe('and when `x = '+x+'`', function() {
57+
it('should return true', function() {
58+
expect(is(Boolean, x)).to.be.true
59+
expect(is('boolean', x)).to.be.true
60+
})
61+
})
6262
}
6363
)
6464

@@ -73,12 +73,12 @@ describe('is', function() {
7373
]
7474
,
7575
function(x) {
76-
describe('and when `x = '+src(x)+'`', function() {
77-
it('should return false', function() {
78-
expect(is(Boolean, x)).to.be.false
79-
expect(is('boolean', x)).to.be.false
80-
})
81-
})
76+
describe('and when `x = '+src(x)+'`', function() {
77+
it('should return false', function() {
78+
expect(is(Boolean, x)).to.be.false
79+
expect(is('boolean', x)).to.be.false
80+
})
81+
})
8282
}
8383
)
8484
})
@@ -99,7 +99,7 @@ describe('is', function() {
9999
]
100100
,
101101
function(x) {
102-
var n = is(Array, x)? x[1] : src(x)
102+
var n = is(Array, x)? x[1] : src(x)
103103

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

@@ -256,7 +256,7 @@ describe('is', function() {
256256
]
257257
,
258258
function(x) {
259-
var n = is(Array, x)? x[1] : src(x)
259+
var n = is(Array, x)? x[1] : src(x)
260260

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

@@ -288,7 +288,7 @@ describe('is', function() {
288288
]
289289
,
290290
function(x) {
291-
var n = is(Array, x)? x[1] : src(x)
291+
var n = is(Array, x)? x[1] : src(x)
292292

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

@@ -317,7 +317,7 @@ describe('is', function() {
317317
]
318318
,
319319
function(x) {
320-
var n = is(Array, x)? x[1] : src(x)
320+
var n = is(Array, x)? x[1] : src(x)
321321

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

0 commit comments

Comments
 (0)