@t7/utils
Version:
Utility methods for T7 components.
17 lines (13 loc) • 318 B
JavaScript
// Dependencies.
import { navigate } from './'
// Describe test.
describe('navigate', () => {
// ==========================
// Test for "navigate" event.
// ==========================
it('handles "navigate" event', () => {
navigate('TEST')
expect(window.location.hash)
.toBe('#/TEST')
})
})