• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright © 1991-2024 Unicode, Inc.
2// For terms of use, see http://www.unicode.org/copyright.html
3// SPDX-License-Identifier: Unicode-3.0
4
5export type TestMessage = {
6 /** The MF2 message to be tested. */
7  src: string;
8  /** The locale to use for formatting. Defaults to 'en-US'. */
9  locale?: string;
10  /** Parameters to pass in to the formatter for resolving external variables. */
11  params?: Record<string, string | number | null | undefined>;
12  /** The expected result of formatting the message to a string. */
13  exp: string;
14  /** The expected result of formatting the message to parts. */
15  parts?: Array<object>;
16  /** A normalixed form of `src`, for testing stringifiers. */
17  cleanSrc?: string;
18  /** The runtime errors expected to be emitted when formatting the message. */
19  errors?: Array<{ type: string }>;
20  /** Normally not set. A flag to use during development to only run one or more specific tests. */
21  only?: boolean;
22};
23
24declare const data: TestMessage[];
25export default data;
26