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

貢獻者指南