import expect from "expect"

import * as model from "../src/model"
import all_of_me from "../data/all_of_me.json"


describe("chordsToBars", () => {
  it("transforms chords into rows for each part", () => {
    const rows = model.chordsToBars(all_of_me.parts.A, all_of_me.key)
    expect(rows).toBeA(Array)
    expect(rows.length).toBe(8)
  })
})

@@ -1,12 +1,44 @@
+import * as tr from %22transduce%22%0A
 import expec
@@ -248,16 +248,28 @@
 t rows =
+ tr.into(%5B%5D,
  model.c
@@ -294,15 +294,12 @@
 _me.
-parts.A
+key)
 , al
@@ -306,19 +306,23 @@
 l_of_me.
-key
+parts.A
 )%0A    ex

Update test