Commit 89dc5540 authored by Nikolay Kuchumov's avatar Nikolay Kuchumov 💬
Browse files

Refactored tests

parent 34fd9cec
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2637,7 +2637,8 @@
    "rollup-plugin-terser": "^7.0.2"
  },
  "scripts": {
    "test": "node --experimental-json-modules node_modules/mocha/bin/_mocha --bail --require ./test/globals.js --require ./test/addLocales.js \"source/**/*.test.js\" \"test/**/*.test.js\"",
    "test": "mocha --require ./test/addLocales.js --bail \"source/**/*.test.js\" \"test/*.test.js\" \"test/!(exports)/**/*.test.js\"",
    "test:exports": "mocha --bail \"test/exports/**/*.test.js\"",
    "test-coverage": "npm-run-all build-commonjs build-commonjs-test-coverage-setup test-coverage-commonjs",
    "test-coverage-commonjs": "node --experimental-json-modules node_modules/istanbul/lib/cli.js cover -x \"*.test.js\" node_modules/mocha/bin/_mocha -- --colors --reporter dot --require ./test/globals.js ./commonjs/addLocales.js \"commonjs/**/*.test.js\" --recursive",
    "build-commonjs-test-coverage-setup": "cross-env babel ./test/addLocales.js ./test/addLabels.test.js --out-dir ./commonjs --source-maps",
@@ -2651,7 +2652,7 @@
    "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",
    "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",
+2 −2
Original line number Diff line number Diff line
import Cache from '../cache/index.js'
import Cache from '../../cache/index.js'

import Library from '../cache/index.cjs'
import Library from '../../cache/index.cjs'

describe('exports/cache', () => {
	it('should export ES6', () => {
+2 −2
Original line number Diff line number Diff line
// Deprecated: `gradation` is a legacy name of `steps`. Use `/steps` subpackage instead.

import { day, canonical } from '../gradation/index.js'
import { day, canonical } from '../../gradation/index.js'

import Library from '../gradation/index.cjs'
import Library from '../../gradation/index.cjs'

describe('exports/gradation', () => {
	it('should export ES6', () => {
+2 −2
Original line number Diff line number Diff line
import { style } from '../prop-types/index.js'
import { style } from '../../prop-types/index.js'

import Library from '../prop-types/index.cjs'
import Library from '../../prop-types/index.cjs'

describe('exports/prop-types', () => {
	it('should export ES6', () => {
+2 −2
Original line number Diff line number Diff line
import { day, approximate, round } from '../steps/index.js'
import Library from '../steps/index.cjs'
import { day, approximate, round } from '../../steps/index.js'
import Library from '../../steps/index.cjs'

describe('exports/steps', () => {
	it('should export ES6', () => {
Loading