mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
fix: type errors in tests
This commit is contained in:
parent
8ff2037906
commit
474b5dccf9
1 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ test("Parses plain string templates correctly", (t) => {
|
||||||
|
|
||||||
test("Parses templates with variables correctly", (t) => {
|
test("Parses templates with variables correctly", (t) => {
|
||||||
const result = parseTemplate("foo {bar} baz");
|
const result = parseTemplate("foo {bar} baz");
|
||||||
t.deepEqual<any>(result, [
|
t.deepEqual(result, [
|
||||||
"foo ",
|
"foo ",
|
||||||
{
|
{
|
||||||
identifier: "bar",
|
identifier: "bar",
|
||||||
|
@ -20,7 +20,7 @@ test("Parses templates with variables correctly", (t) => {
|
||||||
|
|
||||||
test("Parses templates with function variables correctly", (t) => {
|
test("Parses templates with function variables correctly", (t) => {
|
||||||
const result = parseTemplate('foo {bar("str", 5.07)} baz');
|
const result = parseTemplate('foo {bar("str", 5.07)} baz');
|
||||||
t.deepEqual<any>(result, [
|
t.deepEqual(result, [
|
||||||
"foo ",
|
"foo ",
|
||||||
{
|
{
|
||||||
identifier: "bar",
|
identifier: "bar",
|
||||||
|
@ -32,7 +32,7 @@ test("Parses templates with function variables correctly", (t) => {
|
||||||
|
|
||||||
test("Parses function variables with variable arguments correctly", (t) => {
|
test("Parses function variables with variable arguments correctly", (t) => {
|
||||||
const result = parseTemplate('foo {bar("str", 5.07, someVar)} baz');
|
const result = parseTemplate('foo {bar("str", 5.07, someVar)} baz');
|
||||||
t.deepEqual<any>(result, [
|
t.deepEqual(result, [
|
||||||
"foo ",
|
"foo ",
|
||||||
{
|
{
|
||||||
identifier: "bar",
|
identifier: "bar",
|
||||||
|
@ -51,7 +51,7 @@ test("Parses function variables with variable arguments correctly", (t) => {
|
||||||
|
|
||||||
test("Parses function variables with function variable arguments correctly", (t) => {
|
test("Parses function variables with function variable arguments correctly", (t) => {
|
||||||
const result = parseTemplate('foo {bar("str", 5.07, deeply(nested(8)))} baz');
|
const result = parseTemplate('foo {bar("str", 5.07, deeply(nested(8)))} baz');
|
||||||
t.deepEqual<any>(result, [
|
t.deepEqual(result, [
|
||||||
"foo ",
|
"foo ",
|
||||||
{
|
{
|
||||||
identifier: "bar",
|
identifier: "bar",
|
||||||
|
@ -105,7 +105,7 @@ test("Edge case #1", async (t) => {
|
||||||
|
|
||||||
test("Parses empty string args as empty strings", async (t) => {
|
test("Parses empty string args as empty strings", async (t) => {
|
||||||
const result = parseTemplate('{foo("")}');
|
const result = parseTemplate('{foo("")}');
|
||||||
t.deepEqual<any>(result, [
|
t.deepEqual(result, [
|
||||||
{
|
{
|
||||||
identifier: "foo",
|
identifier: "foo",
|
||||||
args: [""],
|
args: [""],
|
||||||
|
|
Loading…
Add table
Reference in a new issue