mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-05 03:21:16 +08:00
This silences a warning because our Node engine is newer then the package expects. There are newer versions of the plugin by now, but the transitive dependencies are younger than 1 week so the audit mirror blocks them. 46.10.1 seems like it was stable for a couple months so we use that. R=alexrudenko@chromium.org Bug: None Change-Id: Icf1c1276852e55dcad97d2ea2eeb6a8d7a9d82ae Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5660063 Commit-Queue: Simon Zünd <szuend@chromium.org> Auto-Submit: Simon Zünd <szuend@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
22 lines
715 B
TypeScript
22 lines
715 B
TypeScript
import { flow } from '../../src/transforms/index.js';
|
|
import { seedBlock } from '../../src/util.js';
|
|
import { Block } from '../../src/primitives.js';
|
|
|
|
const t0 = (b: Block): Block => ({ ...b, description: b.description + ' t0' });
|
|
const t1 = (b: Block): Block => ({ ...b, description: b.description + ' t1' });
|
|
|
|
test('multiple', () => {
|
|
const block = seedBlock({ description: 'test' });
|
|
expect(flow(t0, t1)(block).description).toBe('test t0 t1');
|
|
});
|
|
|
|
test('one', () => {
|
|
const block = seedBlock({ description: 'test' });
|
|
expect(flow(t0)(block).description).toBe('test t0');
|
|
});
|
|
|
|
test('none', () => {
|
|
const block = seedBlock({ description: 'test' });
|
|
expect(flow()(block).description).toBe('test');
|
|
});
|