refactor common test helpers into test/

This way we can share them with multiple tests
This commit is contained in:
David Lechner
2020-06-10 21:59:34 -05:00
committed by David Lechner
parent 8ba4143fa7
commit 31c3e2b52e
16 changed files with 205 additions and 223 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { lookup } from '../utils';
import { lookup } from '../../test';
import { TooltipId } from './button';
import en from './button.en.json';
+1 -1
View File
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { lookup } from '../utils';
import { lookup } from '../../test';
import { EditorStringId } from './editor';
import en from './editor.en.json';
+1 -1
View File
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
import { lookup } from '../../test';
import { MessageId } from '../reducers/notification';
import { lookup } from '../utils';
import en from './notification.en.json';
describe('Ensure .json file has matches for MessageIds', () => {