Skip to content

Commit 0a556db

Browse files
committed
manager test no more inline styles
1 parent 3659ea1 commit 0a556db

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

test/unit/outline/manager.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ describe('manager', () => {
4040
it('is selectable', () => {
4141
expect(result).toHaveAttribute('notselectable', 'false')
4242
})
43-
it('has style', () => {
44-
expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')
43+
it('uses stylesheet layout (no inline style)', () => {
44+
expect(result).not.toHaveAttribute('style')
4545
})
4646
it('shows an expand icon', () => {
4747
const img = result.firstChild
@@ -94,8 +94,8 @@ describe('manager', () => {
9494
it('is selectable', () => {
9595
expect(result).toHaveAttribute('notselectable', 'false')
9696
})
97-
it('has style', () => {
98-
expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')
97+
it('uses stylesheet layout (no inline style)', () => {
98+
expect(result).not.toHaveAttribute('style')
9999
})
100100
it('shows an expand icon', () => {
101101
const img = result.firstChild
@@ -141,8 +141,8 @@ describe('manager', () => {
141141
it('is selectable', () => {
142142
expect(result).toHaveAttribute('notselectable', 'false')
143143
})
144-
it('has style', () => {
145-
expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')
144+
it('uses stylesheet layout (no inline style)', () => {
145+
expect(result).not.toHaveAttribute('style')
146146
})
147147
it('shows the literal text', () => {
148148
expect(result).toHaveTextContent('some text')
@@ -171,8 +171,8 @@ describe('manager', () => {
171171
it('is selectable', () => {
172172
expect(result).toHaveAttribute('notselectable', 'false')
173173
})
174-
it('has style', () => {
175-
expect(result).toHaveStyle('margin: 0.2em; border: none; padding: 0; vertical-align: top;')
174+
it('uses stylesheet layout (no inline style)', () => {
175+
expect(result).not.toHaveAttribute('style')
176176
})
177177
it('shows 3 dots', () => {
178178
expect(result).toHaveTextContent('...')

0 commit comments

Comments
 (0)