We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005365e commit bedcca8Copy full SHA for bedcca8
src/directives/__tests__/background.spec.ts
@@ -1,9 +1,9 @@
1
import { background } from '../background'
2
3
describe('background', () => {
4
- it('returns a string', () => {
5
- const res = background({ background: 'test' }, { useParam: jest.fn, setMetadata: jest.fn })
6
- expect(res).toEqual('test')
+ it('returns a string prefixed with "#"', () => {
+ const res = background({ background: 'fff' }, { useParam: jest.fn, setMetadata: jest.fn })
+ expect(res).toEqual('#fff')
7
})
8
9
it('returns null if "background" is missing', () => {
0 commit comments