polyfill flat() for jest on Node 10.x
This commit is contained in:
parent
3c69e48200
commit
54e0a48701
|
@ -1,4 +1,11 @@
|
|||
import fetchBindableProperties from "../src/builderStore/fetchBindableProperties"
|
||||
import { flat } from "lodash"
|
||||
|
||||
// supports running jest on Node 10.x
|
||||
if (!Array.flat) {
|
||||
Array.flat = flat
|
||||
}
|
||||
|
||||
describe("fetch bindable properties", () => {
|
||||
|
||||
it("should return bindable properties from screen components", () => {
|
||||
|
|
Loading…
Reference in New Issue