Updated test (#50041)

pull/50064/head
Joey Tawadrous 3 years ago committed by GitHub
parent 3d26502db1
commit 6703722278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .betterer.results
  2. 5
      packages/jaeger-ui-components/src/TraceTimelineViewer/Ticks.test.js

@ -77,9 +77,6 @@ exports[`no enzyme tests`] = {
"packages/jaeger-ui-components/src/TraceTimelineViewer/SpanTreeOffset.test.js:174536706": [ "packages/jaeger-ui-components/src/TraceTimelineViewer/SpanTreeOffset.test.js:174536706": [
[14, 19, 13, "RegExp match", "2409514259"] [14, 19, 13, "RegExp match", "2409514259"]
], ],
"packages/jaeger-ui-components/src/TraceTimelineViewer/Ticks.test.js:743308415": [
[14, 19, 13, "RegExp match", "2409514259"]
],
"packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineCollapser.test.js:4018342820": [ "packages/jaeger-ui-components/src/TraceTimelineViewer/TimelineHeaderRow/TimelineCollapser.test.js:4018342820": [
[14, 19, 13, "RegExp match", "2409514259"] [14, 19, 13, "RegExp match", "2409514259"]
], ],

@ -12,14 +12,13 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
import { shallow } from 'enzyme'; import { render } from '@testing-library/react';
import React from 'react'; import React from 'react';
import Ticks from './Ticks'; import Ticks from './Ticks';
describe('<Ticks>', () => { describe('<Ticks>', () => {
it('renders without exploding', () => { it('renders without exploding', () => {
const wrapper = shallow(<Ticks endTime={200} numTicks={5} showLabels startTime={100} />); expect(() => render(<Ticks endTime={200} numTicks={5} showLabels startTime={100} />)).not.toThrow();
expect(wrapper).toBeDefined();
}); });
}); });

Loading…
Cancel
Save