Loading package.json +2 −2 Original line number Diff line number Diff line Loading @@ -2652,13 +2652,13 @@ "build-commonjs-package.json": "node scripts/create-commonjs-package-json.js", "build-es6-modules": "cross-env BABEL_ENV=es6 babel ./source --out-dir ./modules --source-maps --ignore *.test.js", "build": "npm-run-all clean-for-build build-commonjs build-es6-modules browser-build", "prepublishOnly": "npm-run-all generate-locales build test test:exports", "update-relative-time-format": "npm install relative-time-format@latest --save", "delete-locales": "rimraf ./locale/**/*", "create-locales-directory": "mkdirp locale", "generate-locale-messages": "node scripts/generate-locale-messages", "generate-load-all-locales": "node scripts/generate-load-all-locales", "generate-locales": "npm-run-all update-relative-time-format delete-locales create-locales-directory generate-locale-messages generate-load-all-locales" "generate-locales": "npm-run-all update-relative-time-format delete-locales create-locales-directory generate-locale-messages generate-load-all-locales", "prepublishOnly": "npm-run-all generate-locales build test test:exports" }, "repository": { "type": "git", Loading source/FullDateFormatter.test.js +3 −0 Original line number Diff line number Diff line import { describe, it } from 'mocha' import { expect } from 'chai' import FullDateFormatter, { FallbackDateFormatter } from './FullDateFormatter.js' describe('FullDateFormatter', () => { Loading source/TimeAgo.test.js +158 −156 File changed.Preview size limit exceeded, changes collapsed. Show changes source/cache.test.js +3 −0 Original line number Diff line number Diff line import { describe, it } from 'mocha' import { expect } from 'chai' import Cache from './cache.js' describe('cache', () => { Loading source/isStyleObject.test.js +20 −17 Original line number Diff line number Diff line import { describe, it } from 'mocha' import { expect } from 'chai' import isStyleObject from './isStyleObject.js' describe('isStyleObject', () => { it('should detect a style object', () => { isStyleObject({ expect(isStyleObject({ gradation: [] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ steps: [] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ flavour: 'long' }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ flavour: ['long'] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ labels: 'long' }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ labels: ['long'] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ units: ['now'] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ future: true, round: 'floor', now: 0, getTimeToNextUpdate: true }).should.equal(false) isStyleObject('round').should.equal(false) })).to.equal(false) expect(isStyleObject('round')).to.equal(false) }) }) No newline at end of file Loading
package.json +2 −2 Original line number Diff line number Diff line Loading @@ -2652,13 +2652,13 @@ "build-commonjs-package.json": "node scripts/create-commonjs-package-json.js", "build-es6-modules": "cross-env BABEL_ENV=es6 babel ./source --out-dir ./modules --source-maps --ignore *.test.js", "build": "npm-run-all clean-for-build build-commonjs build-es6-modules browser-build", "prepublishOnly": "npm-run-all generate-locales build test test:exports", "update-relative-time-format": "npm install relative-time-format@latest --save", "delete-locales": "rimraf ./locale/**/*", "create-locales-directory": "mkdirp locale", "generate-locale-messages": "node scripts/generate-locale-messages", "generate-load-all-locales": "node scripts/generate-load-all-locales", "generate-locales": "npm-run-all update-relative-time-format delete-locales create-locales-directory generate-locale-messages generate-load-all-locales" "generate-locales": "npm-run-all update-relative-time-format delete-locales create-locales-directory generate-locale-messages generate-load-all-locales", "prepublishOnly": "npm-run-all generate-locales build test test:exports" }, "repository": { "type": "git", Loading
source/FullDateFormatter.test.js +3 −0 Original line number Diff line number Diff line import { describe, it } from 'mocha' import { expect } from 'chai' import FullDateFormatter, { FallbackDateFormatter } from './FullDateFormatter.js' describe('FullDateFormatter', () => { Loading
source/TimeAgo.test.js +158 −156 File changed.Preview size limit exceeded, changes collapsed. Show changes
source/cache.test.js +3 −0 Original line number Diff line number Diff line import { describe, it } from 'mocha' import { expect } from 'chai' import Cache from './cache.js' describe('cache', () => { Loading
source/isStyleObject.test.js +20 −17 Original line number Diff line number Diff line import { describe, it } from 'mocha' import { expect } from 'chai' import isStyleObject from './isStyleObject.js' describe('isStyleObject', () => { it('should detect a style object', () => { isStyleObject({ expect(isStyleObject({ gradation: [] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ steps: [] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ flavour: 'long' }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ flavour: ['long'] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ labels: 'long' }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ labels: ['long'] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ units: ['now'] }).should.equal(true) isStyleObject({ })).to.equal(true) expect(isStyleObject({ future: true, round: 'floor', now: 0, getTimeToNextUpdate: true }).should.equal(false) isStyleObject('round').should.equal(false) })).to.equal(false) expect(isStyleObject('round')).to.equal(false) }) }) No newline at end of file