Skip to content

Commit bedcca8

Browse files
test: reflect that bg color can only be exported without the hashtag
1 parent 005365e commit bedcca8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/directives/__tests__/background.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { background } from '../background'
22

33
describe('background', () => {
4-
it('returns a string', () => {
5-
const res = background({ background: 'test' }, { useParam: jest.fn, setMetadata: jest.fn })
6-
expect(res).toEqual('test')
4+
it('returns a string prefixed with "#"', () => {
5+
const res = background({ background: 'fff' }, { useParam: jest.fn, setMetadata: jest.fn })
6+
expect(res).toEqual('#fff')
77
})
88

99
it('returns null if "background" is missing', () => {

0 commit comments

Comments
 (0)