Food-Static-Data/sd

change importing in all tests

Ouverte

#278 ouverte le 8 mai 2019

 (26 commentaires) (0 réaction) (0 personne assignée)JavaScript (11 forks)auto 404
enhancementgood first issuehelp wantedtests

Métriques du dépôt

Stars
 (9 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur