/* global describe, it */

const assert = require('chai').assert
const chartSupplements = require('./index')

describe('notams', () => {
  it('should fetch chart supplements for a single ICAO', () => {
    return chartSupplements('PANC').then(cs => {
      assert(cs)
    })
  })

  it('should fetch NOTAMs for an array of ICAOs', () => {
    return chartSupplements(['PANC', 'PABV']).then(cs => {
      assert(cs.length === 2)
      cs.map(assert)
    })
  })

  it('should expose the list method', () => {
    return chartSupplements.list('PANC')
  })

  it('should fetch NOTAMs for an array of ICAOs using the list method', () => {
    return chartSupplements.list(['PANC', 'PABV']).then(cs => {
      assert(cs.length === 2)
      cs.map(assert)
    })
  })
})

@@ -117,13 +117,24 @@
 be('
-notam
+chart supplement
 s', 
@@ -296,37 +296,48 @@
 t('should fetch 
-NOTAM
+chart supplement
 s for an array o
@@ -587,19 +587,196 @@
 uld 
-fetch NOTAM
+expose the fetchCurrentCycle method', () =%3E %7B%0A    return chartSupplements.fetchCurrentCycle().then(cycle =%3E %7B%0A      assert(parseInt(cycle))%0A    %7D)%0A  %7D)%0A%0A  it('should fetch chart supplement
 s fo

Add test for fetchCurrentCycle