This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dayjs from 'dayjs'; | |
import plugin from './dayjs-zoned'; | |
dayjs.extend(plugin); | |
// This test does not work inside Electron. See https://github.com/cypress-io/cypress/issues/1043 | |
describe('utcToZoned', () => { | |
it('works with strings', () => { | |
assert.equal( | |
dayjs.utcToZoned('2019-11-10T18:00:16.000Z', 'America/Sao_Paulo').toISOString(), | |
'2019-11-10T14:00:16.000Z' |