text: var kmerCounts = require('..').kmerCounts
  
  describe('k-mer counting', function() {
    test('Base case with empty k-mer array', function() {
      expect(kmerCounts([])).toEqual(new Map())
    })
  
    test('Count a single k-mer', function() {
      expect(kmerCounts(['A'])).toEqual(new Map([['A', 1]]))
    })
  
    test('Count two different k-mers', function() {
      expect(kmerCounts(['A', 'T'])).toEqual(new Map([['A', 1], ['T', 1]]))
    })
  
    test('Count a repeated k-mer', function() {
      expect(kmerCounts(['A', 'A'])).toEqual(new Map([['A', 2]]))
    })
  
    test("Throw an error when k-mers aren't of equal length", function() {
      expect(() => kmerCounts(['A', 'AA'])).toThrow()
    })
  })
  