Food-Static-Data/sd

change importing in all tests

Offen

#278 geöffnet am 08.05.2019

 (26 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (11 Forks)auto 404
enhancementgood first issuehelp wantedtests

Repository-Metriken

Stars
 (9 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Now in all tests we have this structure that get object.

const {allergiesFilePath} = require('../../../files.js')
const allergies = require(allergiesFilePath)

Replace it with importing from filesObjects.js that is in root of project like this

const staticData = require("./filesObjects")
// to get acces use staticData.allergies

Contributor Guide