Food-Static-Data/sd

change importing in all tests

Aberta

#278 aberto em 8 de mai. de 2019

 (26 comentários) (0 reação) (0 responsável)JavaScript (11 forks)auto 404
enhancementgood first issuehelp wantedtests

Métricas do repositório

Stars
 (9 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador