This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch jb/feat-plugin-handlebars
in repository https://gitbox.apache.org/repos/asf/superset.git

commit bc3ee852666a59a53c50d16b2d291fc911bfa74d
Author: Ville Brofeldt <[email protected]>
AuthorDate: Mon Apr 25 17:13:15 2022 +0300

    fix test and add license headers
---
 .../plugins/plugin-chart-handlebars/README.md      | 21 ++++++++++++-
 .../src/components/CodeEditor/CodeEditor.tsx       | 19 ++++++++++++
 .../src/components/ControlHeader/controlHeader.tsx | 18 +++++++++++
 .../src/components/Handlebars/HandlebarsViewer.tsx | 18 +++++++++++
 .../plugins/plugin-chart-handlebars/src/i18n.ts    | 18 +++++++++++
 .../src/plugin/controls/columns.tsx                | 18 +++++++++++
 .../src/plugin/controls/groupBy.tsx                | 18 +++++++++++
 .../src/plugin/controls/handlebarTemplate.tsx      | 18 +++++++++++
 .../src/plugin/controls/includeTime.ts             | 18 +++++++++++
 .../src/plugin/controls/limits.ts                  | 18 +++++++++++
 .../src/plugin/controls/metrics.tsx                | 18 +++++++++++
 .../src/plugin/controls/orderBy.tsx                | 18 +++++++++++
 .../src/plugin/controls/pagination.tsx             | 18 +++++++++++
 .../src/plugin/controls/queryMode.tsx              | 18 +++++++++++
 .../src/plugin/controls/shared.ts                  | 18 +++++++++++
 .../src/plugin/controls/style.tsx                  | 18 +++++++++++
 .../test/plugin/buildQuery.test.ts                 | 18 +++++++++++
 .../test/plugin/transformProps.test.ts             | 35 +++++++++++++++++-----
 .../plugin-chart-handlebars/types/external.d.ts    | 18 +++++++++++
 19 files changed, 354 insertions(+), 9 deletions(-)

diff --git a/superset-frontend/plugins/plugin-chart-handlebars/README.md 
b/superset-frontend/plugins/plugin-chart-handlebars/README.md
index 90816aeded..5b5468cc05 100644
--- a/superset-frontend/plugins/plugin-chart-handlebars/README.md
+++ b/superset-frontend/plugins/plugin-chart-handlebars/README.md
@@ -1,8 +1,27 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
 ## @superset-ui/plugin-chart-handlebars
 
 
[![Version](https://img.shields.io/npm/v/@superset-ui/plugin-chart-handlebars.svg?style=flat-square)](https://www.npmjs.com/package/@superset-ui/plugin-chart-handlebars)
 
-This plugin renders the data using a handlebars template.  
+This plugin renders the data using a handlebars template.
 
 ### Usage
 
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/components/CodeEditor/CodeEditor.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/components/CodeEditor/CodeEditor.tsx
index adcab298d8..5128fd8275 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/components/CodeEditor/CodeEditor.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/components/CodeEditor/CodeEditor.tsx
@@ -1,3 +1,22 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 import React, { FC } from 'react';
 import AceEditor, { IAceEditorProps } from 'react-ace';
 
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/components/ControlHeader/controlHeader.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/components/ControlHeader/controlHeader.tsx
index 5297e0cdf0..2dac822f8f 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/components/ControlHeader/controlHeader.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/components/ControlHeader/controlHeader.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import React, { ReactNode } from 'react';
 
 interface ControlHeaderProps {
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/components/Handlebars/HandlebarsViewer.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/components/Handlebars/HandlebarsViewer.tsx
index 59bef0390e..6b3a69b0c7 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/components/Handlebars/HandlebarsViewer.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/components/Handlebars/HandlebarsViewer.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import { SafeMarkdown, styled } from '@superset-ui/core';
 import Handlebars from 'handlebars';
 import moment from 'moment';
diff --git a/superset-frontend/plugins/plugin-chart-handlebars/src/i18n.ts 
b/superset-frontend/plugins/plugin-chart-handlebars/src/i18n.ts
index e8e1657f1d..5d015b5665 100644
--- a/superset-frontend/plugins/plugin-chart-handlebars/src/i18n.ts
+++ b/superset-frontend/plugins/plugin-chart-handlebars/src/i18n.ts
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import { Locale } from '@superset-ui/core';
 
 const en = {
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/columns.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/columns.tsx
index 11cdb06bf7..0582bfc23f 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/columns.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/columns.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ColumnOption,
   ControlSetItem,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/groupBy.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/groupBy.tsx
index 7a2e7f54d1..0df08bc1d4 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/groupBy.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/groupBy.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ControlPanelState,
   ControlSetItem,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx
index 9eab1da110..4d86cdc928 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/handlebarTemplate.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ControlSetItem,
   CustomControlConfig,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/includeTime.ts
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/includeTime.ts
index 6e45cbc842..7004f45fe3 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/includeTime.ts
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/includeTime.ts
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import { ControlSetItem } from '@superset-ui/chart-controls';
 import { t } from '@superset-ui/core';
 import { isAggMode } from './shared';
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/limits.ts
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/limits.ts
index 5a1aa3d906..701dc27aae 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/limits.ts
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/limits.ts
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ControlPanelsContainerProps,
   ControlSetItem,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/metrics.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/metrics.tsx
index 44806d7aff..88777c9c31 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/metrics.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/metrics.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ControlPanelState,
   ControlSetItem,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/orderBy.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/orderBy.tsx
index 37454ce57a..728934d719 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/orderBy.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/orderBy.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import { ControlSetItem } from '@superset-ui/chart-controls';
 import { t } from '@superset-ui/core';
 import { isAggMode, isRawMode } from './shared';
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/pagination.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/pagination.tsx
index 0b0144574b..bf4c120717 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/pagination.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/pagination.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ControlPanelsContainerProps,
   ControlSetItem,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/queryMode.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/queryMode.tsx
index a97d6e4682..b895b97f28 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/queryMode.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/queryMode.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ControlConfig,
   ControlSetItem,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/shared.ts
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/shared.ts
index f4b1ae6879..5f364a2880 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/shared.ts
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/shared.ts
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ControlPanelsContainerProps,
   ControlStateMapping,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx
 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx
index 8d80fc187e..4d6f259eeb 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/src/plugin/controls/style.tsx
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import {
   ControlSetItem,
   CustomControlConfig,
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/buildQuery.test.ts
 
b/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/buildQuery.test.ts
index ec0eb1bae2..217ee50485 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/buildQuery.test.ts
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/buildQuery.test.ts
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import { HandlebarsQueryFormData } from '../../src/types';
 import buildQuery from '../../src/plugin/buildQuery';
 
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/transformProps.test.ts
 
b/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/transformProps.test.ts
index b5dc643529..24aa3c3745 100644
--- 
a/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/transformProps.test.ts
+++ 
b/superset-frontend/plugins/plugin-chart-handlebars/test/plugin/transformProps.test.ts
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 import { ChartProps, QueryFormData } from '@superset-ui/core';
 import { HandlebarsQueryFormData } from '../../src/types';
 import transformProps from '../../src/plugin/transformProps';
@@ -25,13 +43,14 @@ describe('Handlebars tranformProps', () => {
   });
 
   it('should tranform chart props for viz', () => {
-    expect(transformProps(chartProps)).toEqual({
-      formData,
-      width: 800,
-      height: 600,
-      data: [
-        { name: 'Hulk', sum__num: 1, __timestamp: new Date(599616000000) },
-      ],
-    });
+    expect(transformProps(chartProps)).toEqual(
+      expect.objectContaining({
+        width: 800,
+        height: 600,
+        data: [
+          { name: 'Hulk', sum__num: 1, __timestamp: new Date(599616000000) },
+        ],
+      }),
+    );
   });
 });
diff --git 
a/superset-frontend/plugins/plugin-chart-handlebars/types/external.d.ts 
b/superset-frontend/plugins/plugin-chart-handlebars/types/external.d.ts
index 0935dbbd80..8f7985ceaf 100644
--- a/superset-frontend/plugins/plugin-chart-handlebars/types/external.d.ts
+++ b/superset-frontend/plugins/plugin-chart-handlebars/types/external.d.ts
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 declare module '*.png' {
   const value: any;
   export default value;

Reply via email to