Skip to content

Commit

Permalink
style: reformat test data arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Mar 28, 2018
1 parent 853ce3d commit 85cfef6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 40 deletions.
15 changes: 5 additions & 10 deletions test/unit/audio-nodes/biquad-filter-node.js
Expand Up @@ -22,8 +22,7 @@ describe('BiquadFilterNode', () => {

return new BiquadFilterNode(context, options);
}
],
[
], [
'constructor with MinimalAudioContext',
() => new MinimalAudioContext(),
(context, options = null) => {
Expand All @@ -33,8 +32,7 @@ describe('BiquadFilterNode', () => {

return new BiquadFilterNode(context, options);
}
],
[
], [
'constructor with OfflineAudioContext',
() => new OfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand All @@ -44,8 +42,7 @@ describe('BiquadFilterNode', () => {

return new BiquadFilterNode(context, options);
}
],
[
], [
'constructor with MinimalOfflineAudioContext',
() => new MinimalOfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand All @@ -55,8 +52,7 @@ describe('BiquadFilterNode', () => {

return new BiquadFilterNode(context, options);
}
],
[
], [
'factory function of AudioContext',
() => new AudioContext(),
(context, options = null) => {
Expand Down Expand Up @@ -96,8 +92,7 @@ describe('BiquadFilterNode', () => {

return biquadFilterNode;
}
],
[
], [
'factory function of OfflineAudioContext',
() => new OfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand Down
15 changes: 5 additions & 10 deletions test/unit/audio-nodes/constant-source-node.js
Expand Up @@ -22,8 +22,7 @@ describe('ConstantSourceNode', () => {

return new ConstantSourceNode(context, options);
}
],
[
], [
'constructor with MinimalAudioContext',
() => new MinimalAudioContext(),
(context, options = null) => {
Expand All @@ -33,8 +32,7 @@ describe('ConstantSourceNode', () => {

return new ConstantSourceNode(context, options);
}
],
[
], [
'constructor with OfflineAudioContext',
() => new OfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand All @@ -44,8 +42,7 @@ describe('ConstantSourceNode', () => {

return new ConstantSourceNode(context, options);
}
],
[
], [
'constructor with MinimalOfflineAudioContext',
() => new MinimalOfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand All @@ -55,8 +52,7 @@ describe('ConstantSourceNode', () => {

return new ConstantSourceNode(context, options);
}
],
[
], [
'factory function of AudioContext',
() => new AudioContext(),
(context, options = null) => {
Expand All @@ -80,8 +76,7 @@ describe('ConstantSourceNode', () => {

return constantSourceNode;
}
],
[
], [
'factory function of OfflineAudioContext',
() => new OfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand Down
15 changes: 5 additions & 10 deletions test/unit/audio-nodes/gain-node.js
Expand Up @@ -21,8 +21,7 @@ describe('GainNode', () => {

return new GainNode(context, options);
}
],
[
], [
'constructor with MinimalAudioContext',
() => new MinimalAudioContext(),
(context, options = null) => {
Expand All @@ -32,8 +31,7 @@ describe('GainNode', () => {

return new GainNode(context, options);
}
],
[
], [
'constructor with OfflineAudioContext',
() => new OfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand All @@ -43,8 +41,7 @@ describe('GainNode', () => {

return new GainNode(context, options);
}
],
[
], [
'constructor with MinimalOfflineAudioContext',
() => new MinimalOfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand All @@ -54,8 +51,7 @@ describe('GainNode', () => {

return new GainNode(context, options);
}
],
[
], [
'factory function of AudioContext',
() => new AudioContext(),
(context, options = null) => {
Expand All @@ -79,8 +75,7 @@ describe('GainNode', () => {

return gainNode;
}
],
[
], [
'factory function of OfflineAudioContext',
() => new OfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options = null) => {
Expand Down
15 changes: 5 additions & 10 deletions test/unit/audio-nodes/iir-filter-node.js
Expand Up @@ -16,23 +16,19 @@ describe('IIRFilterNode', () => {
'constructor with AudioContext',
() => new AudioContext(),
(context, options) => new IIRFilterNode(context, options)
],
[
], [
'constructor with MinimalAudioContext',
() => new MinimalAudioContext(),
(context, options) => new IIRFilterNode(context, options)
],
[
], [
'constructor with OfflineAudioContext',
() => new OfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options) => new IIRFilterNode(context, options)
],
[
], [
'constructor with MinimalOfflineAudioContext',
() => new MinimalOfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options) => new IIRFilterNode(context, options)
],
[
], [
'factory function of AudioContext',
() => new AudioContext(),
(context, options) => {
Expand All @@ -52,8 +48,7 @@ describe('IIRFilterNode', () => {

return iIRFilterNode;
}
],
[
], [
'factory function of OfflineAudioContext',
() => new OfflineAudioContext({ length: 5, sampleRate: 44100 }),
(context, options) => {
Expand Down

0 comments on commit 85cfef6

Please sign in to comment.