mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 03:51:24 +08:00
This moves the helpers to `testing/` subdirectories, consistent with the TS/JS Style Guide[^1]. [^1]: http://go/tsjs-style#test-file-names DISABLE_THIRD_PARTY_CHECK=Moving unit tests. Bug: 325903709 Change-Id: I5b82c1b00f724776e06f1675eae9c19ff1b4ba7c Doc: http://go/chrome-devtools:move-unit-tests-design Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5317645 Commit-Queue: Philip Pfaffe <pfaffe@chromium.org> Auto-Submit: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
23 lines
717 B
TypeScript
23 lines
717 B
TypeScript
// Copyright 2020 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import * as Common from '../core/common/common.js';
|
|
import type * as SDK from '../core/sdk/sdk.js';
|
|
import type * as IssuesManager from '../models/issues_manager/issues_manager.js';
|
|
|
|
export class MockIssuesModel extends Common.ObjectWrapper.ObjectWrapper<SDK.IssuesModel.EventTypes> {
|
|
private mockIssues: Iterable<IssuesManager.Issue.Issue>;
|
|
|
|
constructor(issues: Iterable<IssuesManager.Issue.Issue>) {
|
|
super();
|
|
this.mockIssues = issues;
|
|
}
|
|
issues() {
|
|
return this.mockIssues;
|
|
}
|
|
target() {
|
|
return {id: () => 'fake-id'};
|
|
}
|
|
}
|