mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
* [toasts] get rid of notify globals, refactor messageToasts for use by entire app * [remove notify] use arrow func in ajax call * fix lint + tests * actually fix tests from messageToast refactor * add 'test:one' npm script * debugger * [toasts] convert bootstrap flash messages to toasts in explore + sqllab * [toasts][tests] import from right file
18 lines
484 B
JavaScript
18 lines
484 B
JavaScript
import React from 'react';
|
|
import { describe, it } from 'mocha';
|
|
import { expect } from 'chai';
|
|
import { initialState } from './fixtures';
|
|
|
|
import CopyQueryTabUrl from '../../../src/SqlLab/components/CopyQueryTabUrl';
|
|
|
|
describe('CopyQueryTabUrl', () => {
|
|
const mockedProps = {
|
|
queryEditor: initialState.sqlLab.queryEditors[0],
|
|
};
|
|
it('is valid with props', () => {
|
|
expect(
|
|
React.isValidElement(<CopyQueryTabUrl {...mockedProps} />),
|
|
).to.equal(true);
|
|
});
|
|
});
|