Skip to content

jest 4/4 failing (timezone)

Job #823738340 failed for 56531604:

Summary of all failing tests
FAIL spec/frontend/deploy_freeze/components/timezone_dropdown_spec.js
  ● Deploy freeze timezone dropdown › Time zones found › renders only the time zone searched for
    expect(received).toBe(expected) // Object.is equality
    Expected: "[UTC -8] Alaska"
    Received: "[UTC -9] Alaska"
      65 |     it('renders only the time zone searched for', () => {
      66 |       expect(findAllDropdownItems()).toHaveLength(1);
    > 67 |       expect(findDropdownItemByIndex(0).text()).toBe('[UTC -8] Alaska');
         |                                                 ^
      68 |     });
      69 | 
      70 |     it('should not display empty results message', () => {
      at Object.<anonymous> (spec/frontend/deploy_freeze/components/timezone_dropdown_spec.js:67:49)
  ● Deploy freeze timezone dropdown › Time zones found › Custom events › should emit input if a time zone is clicked
    expect(received).toEqual(expected) // deep equality
    - Expected  - 1
    + Received  + 1
      Array [
        Array [
          Object {
    -       "formattedTimezone": "[UTC -8] Alaska",
    +       "formattedTimezone": "[UTC -9] Alaska",
            "identifier": "America/Juneau",
          },
        ],
      ]
      75 |       it('should emit input if a time zone is clicked', () => {
      76 |         findDropdownItemByIndex(0).vm.$emit('click');
    > 77 |         expect(wrapper.emitted('input')).toEqual([
         |                                          ^
      78 |           [
      79 |             {
      80 |               formattedTimezone: '[UTC -8] Alaska',
      at Object.<anonymous> (spec/frontend/deploy_freeze/components/timezone_dropdown_spec.js:77:42)
Test Suites: 1 failed, 1 skipped, 542 passed, 543 of 544 total
Tests:       2 failed, 3 skipped, 6057 passed, 6062 total
Snapshots:   86 passed, 86 total
Time:        744.486 s