2021-08-12 03:11:35 +03:00
|
|
|
import {
|
2021-04-01 09:11:55 +03:00
|
|
|
getCurrentVersion,
|
2021-06-15 21:38:30 +03:00
|
|
|
getPackageStats,
|
2021-04-01 09:11:55 +03:00
|
|
|
getSelectorDiff,
|
2021-10-08 19:20:20 +03:00
|
|
|
getVariableDiff,
|
|
|
|
currentVersionDeprecations
|
2021-08-12 03:11:35 +03:00
|
|
|
} from './utils/css'
|
|
|
|
import semver from 'semver'
|
2021-04-01 00:53:15 +03:00
|
|
|
|
2021-04-01 09:11:55 +03:00
|
|
|
let selectorsDiff, variablesDiff, version
|
|
|
|
|
|
|
|
beforeAll(async () => {
|
|
|
|
selectorsDiff = getSelectorDiff()
|
|
|
|
variablesDiff = getVariableDiff()
|
|
|
|
version = getCurrentVersion()
|
|
|
|
})
|
|
|
|
|
2021-06-15 21:38:30 +03:00
|
|
|
describe('css', () => {
|
|
|
|
it('The support.css file contains no compiled css', () => {
|
|
|
|
const supportStats = getPackageStats('support')
|
|
|
|
expect(supportStats.size).toEqual(0)
|
|
|
|
})
|
|
|
|
})
|
2021-10-08 19:20:20 +03:00
|
|
|
|
|
|
|
describe('deprecations', () => {
|
|
|
|
it('expects deprecations and their replacement to not be equal.', () => {
|
|
|
|
const deprecations = currentVersionDeprecations()
|
|
|
|
Object.keys(deprecations["selectors"]).forEach(deprecation => {
|
|
|
|
const replacement = deprecations["selectors"][deprecation]
|
|
|
|
expect(deprecation).not.toEqual(replacement)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|