2024-01-22 14:43:46 -08:00
|
|
|
// import { topoSort } from 'src/services/theme_data/theme_data.service.js'
|
|
|
|
import {
|
|
|
|
getAllPossibleCombinations,
|
2024-01-23 09:18:55 -08:00
|
|
|
init
|
2024-01-22 14:43:46 -08:00
|
|
|
} from 'src/services/theme_data/theme_data_3.service.js'
|
|
|
|
import {
|
|
|
|
sampleRules
|
|
|
|
} from 'src/services/theme_data/pleromafe.t3.js'
|
|
|
|
|
|
|
|
describe.only('Theme Data 3', () => {
|
|
|
|
describe('getAllPossibleCombinations', () => {
|
|
|
|
it('test simple case', () => {
|
|
|
|
const out = getAllPossibleCombinations([1, 2, 3]).map(x => x.sort((a, b) => a - b))
|
|
|
|
expect(out).to.eql([[1], [2], [3], [1, 2], [1, 3], [2, 3], [1, 2, 3]])
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
describe('init', () => {
|
|
|
|
it('test simple case', () => {
|
2024-01-31 07:39:51 -08:00
|
|
|
const out = init(sampleRules, palette)
|
2024-01-23 09:18:55 -08:00
|
|
|
// console.log(JSON.stringify(out, null, 2))
|
|
|
|
console.log('\n' + out.css.join('\n') + '\n')
|
2024-01-22 14:43:46 -08:00
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|