Food-Static-Data/sd

change importing in all tests

オープン

#278 opened on 2019/05/08

 (26 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (11 件のフォーク)auto 404
enhancementgood first issuehelp wantedtests

Repository metrics

Stars
 (9 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド