Sha256: dc1d46caa3eaba4b49b248192908deafbb7571678e1c41af7d03283645a2f952

Contents?: true

Size: 255 Bytes

Versions: 17

Compression:

Stored size: 255 Bytes

Contents

import * as utils from '../utils'
import i18n from '@/plugins/i18n.js'

describe('numberToHumanSize', () => {
  it('takes a number and converts it into a human string', () => {
    expect(utils.numberToHumanSize(2096000, i18n)).toEqual('2.00 MB')
  })
})

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
maglevcms-1.7.0 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.6.1 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.6.0 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.5.1 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.4.0 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.3.0 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.2.2 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.2.1 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.2.0 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.1.7 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.1.6 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.1.5 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.1.4 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.1.3 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.1.2 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.1.1 app/frontend/editor/misc/__tests__/utils.spec.js
maglevcms-1.1.0 app/frontend/editor/misc/__tests__/utils.spec.js