Food-Static-Data/sd

change importing in all tests

开放

#278 创建于 2019年5月8日

 (26 条评论) (0 个反应) (0 位负责人)JavaScript (11 个派生)auto 404
enhancementgood first issuehelp wantedtests

仓库指标

星标
 (9 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南