Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit372eaad

Browse files
committed
Update argument names in tests
1 parentc0247c0 commit372eaad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎test/browser.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { get, getSync } from '../src/browser'
33

44
describe('Browser',()=>{
55
describe('get',()=>{
6-
it('should throw an error ifimage is not a string, HTMLImageElement, File or Blob',()=>{
6+
it('should throw an error ifdata is not a string, HTMLImageElement, File or Blob',()=>{
77
expect(()=>get({},()=>{})).to.throw(Error)
88
})
99

‎test/node.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,27 @@ describe('Node', () => {
3232
})
3333

3434
describe('get',()=>{
35-
it('should throw an error ifimage is not a string, Buffer, or fs.ReadStream',()=>{
35+
it('should throw an error ifdata is not a string, Buffer, or fs.ReadStream',()=>{
3636
expect(()=>get({},()=>{})).to.throw(Error)
3737
})
3838

3939
it('should throw an error if callback is not a function',()=>{
4040
expect(()=>get('test.jpg',null)).to.throw(Error)
4141
})
4242

43-
it('should callprovided callback with an ImageData instance when given a path',()=>{
43+
it('should callthe callback with an ImageData instance when given a path',()=>{
4444
get(imagePath,(error,data)=>{
4545
assert.instanceOf(data,ImageData)
4646
})
4747
})
4848

49-
it('should callprovided callback with an ImageData instance when given a Buffer',()=>{
49+
it('should callthe callback with an ImageData instance when given a Buffer',()=>{
5050
get(imageBuffer,(error,data)=>{
5151
assert.instanceOf(data,ImageData)
5252
})
5353
})
5454

55-
it('should callprovided callback with an ImageData instance when given a ReadStream',()=>{
55+
it('should callthe callback with an ImageData instance when given a ReadStream',()=>{
5656
get(imageReadStream,(error,data)=>{
5757
assert.instanceOf(data,ImageData)
5858
})
@@ -78,7 +78,7 @@ describe('Node', () => {
7878
})
7979

8080
describe('getSync',()=>{
81-
it('should throw an error ifimage is not a string or Buffer',()=>{
81+
it('should throw an error ifdata is not a string or Buffer',()=>{
8282
expect(()=>getSync([])).to.throw(Error)
8383
})
8484

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp