mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +08:00
Summary: Add tooltip. To use just add a data-tooltip="plain string" Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://review.inboxapp.com/D1288
15 lines
408 B
CoffeeScript
15 lines
408 B
CoffeeScript
# Testing the Tooltip component
|
|
_ = require 'underscore-plus'
|
|
React = require 'react/addons'
|
|
ReactTestUtils = React.addons.TestUtils
|
|
|
|
Tooltip = require '../lib/tooltip.cjsx'
|
|
|
|
describe "Tooltip", ->
|
|
beforeEach ->
|
|
@tooltip = ReactTestUtils.renderIntoDocument(
|
|
<Tooltip />
|
|
)
|
|
|
|
it "renders to the document", ->
|
|
expect(ReactTestUtils.isCompositeComponentWithType @tooltip, Tooltip).toBe true
|