diff options
Diffstat (limited to 'spec/frontend/authentication/u2f/register_spec.js')
-rw-r--r-- | spec/frontend/authentication/u2f/register_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/authentication/u2f/register_spec.js b/spec/frontend/authentication/u2f/register_spec.js index 7ae3a2734cb..23d1e5c7dee 100644 --- a/spec/frontend/authentication/u2f/register_spec.js +++ b/spec/frontend/authentication/u2f/register_spec.js @@ -1,5 +1,6 @@ import $ from 'jquery'; import { loadHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; +import { trimText } from 'helpers/text_helper'; import U2FRegister from '~/authentication/u2f/register'; import 'vendor/u2f'; import MockU2FDevice from './mock_u2f_device'; @@ -24,7 +25,7 @@ describe('U2FRegister', () => { it('allows registering a U2F device', () => { const setupButton = container.find('#js-setup-token-2fa-device'); - expect(setupButton.text()).toBe('Set up new device'); + expect(trimText(setupButton.text())).toBe('Set up new device'); setupButton.trigger('click'); const inProgressMessage = container.children('p'); |