Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 17 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /*! |
||
6 | let assert = require("assert"); |
||
7 | |||
8 | describe("BWF data reading", function() { |
||
9 | |||
10 | let fs = require("fs"); |
||
11 | let wavefile = require("../index.js"); |
||
12 | let path = "test/files/"; |
||
13 | |||
14 | let wBytes = fs.readFileSync(path + "24bit-16kHz-bext-mono.wav"); |
||
15 | let wav = new wavefile.WaveFile(wBytes); |
||
16 | wav.fromBytes(wBytes); |
||
17 | |||
18 | it("should find the 'bext' chunk in a BWF", |
||
19 | function() { |
||
20 | assert.equal(wav.bextChunkId, "bext"); |
||
21 | }); |
||
22 | }); |
||
23 |