Skip to content

Commit 818d000

Browse files
committed
Remove lena
1 parent f9edc29 commit 818d000

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test/samples

test/index.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const AudioBufferList = require('audio-buffer-list')
1010
const util = require('audio-buffer-utils')
1111

1212

13+
let sampleMp3 = 'https://github.com/audiojs/audio/raw/master/test/samples/chopin.mp3'
14+
let sampleWav = ''
15+
16+
1317
t('create empty instance', t => {
1418
let a = Audio();
1519

@@ -141,7 +145,7 @@ t.skip('create from buffer', t => {
141145
})
142146

143147
t('load wav', t => {
144-
Audio.load('./lena.wav').then(audio => {
148+
Audio.load(localWav).then(audio => {
145149
t.equal(audio.length, 541184)
146150
t.equal(audio.channels, 1)
147151
t.end();
@@ -157,7 +161,7 @@ t('load mp3')
157161
t('load ogg')
158162

159163
t.only('load remote', t => {
160-
Audio.load('https://github.com/audiojs/audio/raw/master/test/sample.flac', (err, a) => {
164+
Audio.load('https://github.com/audiojs/audio/raw/master/test/samples/chopin.mp3', (err, a) => {
161165
t.ok(a)
162166
t.end()
163167
})
@@ -176,21 +180,21 @@ t('load caching', t => {
176180
let a
177181

178182
//put into cache
179-
Audio.load('./lena.wav').then((audio) => {
183+
Audio.load(localWav).then((audio) => {
180184
t.ok(audio)
181185
a = audio
182186
})
183187

184188
//load once first item is loaded
185-
Audio.load('./lena.wav').then((audio) => {
189+
Audio.load(localWav).then((audio) => {
186190
t.ok(Object.keys(Audio.cache).length)
187191
t.ok(Audio.isAudio(audio))
188192
t.notEqual(audio, a)
189193
})
190194

191195
//load already loaded
192196
.then(audio => {
193-
return Audio.load('./lena.wav')
197+
return Audio.load(localWav)
194198
})
195199
.then(a => {
196200
t.ok(Audio.isAudio(a))

0 commit comments

Comments
 (0)