import {
    apiUrl,
    apiKey,
    apiMapTemperature,
    apiMapPrecipitation,
    apiMapPressure,
    apiMapWind,
    apiMapCoulds
    } from './config'

import {
    find,
    weather,
    forecastDaily,
    forecast,
    mapTemperature,
    mapPrecipitation,
    mapPressure,
    mapWind,
    mapCloud
} from './api'

describe('api', function () {
  it('create find api endpoint', () => {
    expect(find('brno')).toEqual(`${apiUrl}find?q=brno&APPID=${apiKey}`)
  })

  it('create weather api endpoint', () => {
    expect(weather(5128581)).toEqual(`${apiUrl}weather?id=5128581&APPID=${apiKey}&units=metric`)
  })

  it('create forecastDaily api endpoint', () => {
    expect(forecastDaily(5128581)).toEqual(`${apiUrl}forecast/daily?id=5128581&APPID=${apiKey}&units=metric`)
  })

  it('create forecast api endpoint', () => {
    expect(forecast(5128581)).toEqual(`${apiUrl}forecast?id=5128581&APPID=${apiKey}&units=metric`)
  })

  it('create mapTemperature api endpoint', () => {
    expect(mapTemperature()).toEqual(`${apiMapTemperature}?APPID=${apiKey}`)
  })

  it('create mapPrecipitation api endpoint', () => {
    expect(mapPrecipitation()).toEqual(`${apiMapPrecipitation}?APPID=${apiKey}`)
  })

  it('create mapPressure api endpoint', () => {
    expect(mapPressure()).toEqual(`${apiMapPressure}?APPID=${apiKey}`)
  })

  it('create mapPressure api endpoint', () => {
    expect(mapWind()).toEqual(`${apiMapWind}?APPID=${apiKey}`)
  })

  it('create mapCloud api endpoint', () => {
    expect(mapCloud()).toEqual(`${apiMapCoulds}?APPID=${apiKey}`)
  })
})

@@ -362,26 +362,22 @@
 eate
- find api endpoint
+s api url find
 ', (
@@ -478,29 +478,25 @@
 eate
- weather api endpoint
+s api url weather
 ', (
@@ -609,32 +609,41 @@
 %7D)%0A%0A  it('create
+s api url
  forecastDaily a
@@ -640,29 +640,16 @@
 astDaily
- api endpoint
 ', () =%3E
@@ -783,29 +783,25 @@
 eate
- forecast api endpoin
+s api url forecas
 t', 
@@ -921,24 +921,33 @@
   it('create
+s api url
  mapTemperat
@@ -949,29 +949,16 @@
 perature
- api endpoint
 ', () =%3E
@@ -1051,24 +1051,33 @@
   it('create
+s api url
  mapPrecipit
@@ -1081,29 +1081,16 @@
 pitation
- api endpoint
 ', () =%3E
@@ -1183,32 +1183,41 @@
 %7D)%0A%0A  it('create
+s api url
  mapPressure api
@@ -1208,37 +1208,24 @@
  mapPressure
- api endpoint
 ', () =%3E %7B%0A 
@@ -1308,24 +1308,33 @@
   it('create
+s api url
  mapPressure
@@ -1333,29 +1333,16 @@
 Pressure
- api endpoint
 ', () =%3E
@@ -1425,16 +1425,25 @@
 ('create
+s api url
  mapClou
@@ -1447,21 +1447,8 @@
 loud
- api endpoint
 ', (

Add better naming for test cases