12 lines
519 B
JavaScript
12 lines
519 B
JavaScript
import assert from 'node:assert/strict'
|
|||
|
|
import { readFileSync } from 'node:fs'
|
||
|
|
import test from 'node:test'
|
||
|
|
|
||
|
|
const source = readFileSync(new URL('./DataTable.vue', import.meta.url), 'utf8')
|
||
|
|
|
||
|
|
test('keeps action-only table toolbars on the left', () => {
|
||
|
|
assert.match(source, /'data-table__toolbar--actions-only': !\$slots\.toolbar/)
|
||
|
|
assert.match(source, /v-if="\$slots\.toolbar" class="data-table__toolbar-heading"/)
|
||
|
|
assert.match(source, /\.data-table__toolbar--actions-only \{ justify-content: flex-start; \}/)
|
||
|
|
})
|