"use strict"

const expect = require('expect')
const detectFormat = require('./detectFormat')

{
    // can detect v1 BOX.RAW
    const isBoxRaw = {length: 320 * 66}
    const isNotBoxRaw = {length: 1}

    expect(detectFormat(isBoxRaw)).toBe('v1boxraw')
    expect(detectFormat(isNotBoxRaw)).toBe('unknown')
}

{
    // can detect v1 CHR
    const isV1Chr = {length: 16 * 32 * 30}
    const isAlsoV1Chr {length: 16 * 32 * 20}
    const isNotV1Chr = {length: 1}

    expect(detectFormat(isV1Chr)).toBe('v1chr')
    expect(detectFormat(isAlsoV1Chr)).toBe('v1chr')
    expect(detectFormat(isNotV1Chr)).toBe('unknown')
}
@@ -396,16 +396,18 @@
 lsoV1Chr
+ =
  %7Blength

fix broken v1 chr detection test