Skip to content

Commit eec79d8

Browse files
committed
change test descriptions for consistency
1 parent 92706f9 commit eec79d8

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/utils/core.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ describe('Core Utilities', () => {
9292
stub = sinon.stub(console, 'log').callsFake(spy)
9393
})
9494

95-
it('invokes console.log', () => {
95+
it('should invoke console.log', () => {
9696
logger.call(mock)
9797
expect(spy).to.have.been.called
9898
})
9999

100-
it('prepends output with `ScrollReveal: `', () => {
100+
it('should prepend output with `ScrollReveal: `', () => {
101101
logger.call(mock, 'test')
102102
const result = '%cScrollReveal: test'
103103
const style = 'color: #ea654b;'
104104
expect(spy).to.have.been.calledWith(result, style)
105105
})
106106

107-
it('accepts multiple arguments as message details', () => {
107+
it('should accept multiple arguments as message details', () => {
108108
logger.call(mock, 'message', 'detail one', 'detail two')
109109
const result = '%cScrollReveal: message\n — detail one\n — detail two'
110110
const style = 'color: #ea654b;'

test/utils/generic.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,22 @@ describe('Generic Utilities', () => {
7373
}
7474

7575
describe('when passed an object literal', () => {
76-
it('invokes callback for each property', () => {
76+
it('should invoke callback for each property', () => {
7777
const fixture = new Fixture()
7878
const spy = sinon.spy()
7979
each(fixture, spy)
8080
expect(spy).to.have.been.calledTwice
8181
})
8282

83-
it('ignores properties on the prototype chain', () => {
83+
it('should ignore properties on the prototype chain', () => {
8484
Fixture.prototype.biff = 'baff'
8585
const fixture = new Fixture()
8686
const spy = sinon.spy()
8787
each(fixture, spy)
8888
expect(spy).to.have.been.calledTwice
8989
})
9090

91-
it('passes the value, key and collection to the callback', () => {
91+
it('should pass the value, key and collection to the callback', () => {
9292
const fixture = new Fixture()
9393
let _value, _key, _collection
9494
each(fixture, (value, key, collection) => {
@@ -105,13 +105,13 @@ describe('Generic Utilities', () => {
105105
describe('when passed an array', () => {
106106
const fixture = ['apple', 'orange', 'banana']
107107

108-
it('invokes callback for each value', () => {
108+
it('should invoke callback for each value', () => {
109109
const spy = sinon.spy()
110110
each(fixture, spy)
111111
expect(spy).to.have.been.calledThrice
112112
})
113113

114-
it('passes the value, index and collection to the callback', () => {
114+
it('should pass the value, index and collection to the callback', () => {
115115
let _value, _index, _collection
116116
each(fixture, (value, index, collection) => {
117117
_value = value

0 commit comments

Comments
 (0)