fix: 🐛 typos
This commit is contained in:
@ -5,7 +5,7 @@ import { LinearGradient } from './linear'
|
||||
|
||||
describe('LinearGradient', () => {
|
||||
describe('constructor()', () => {
|
||||
it('creates a new object of type LinearGradient', () => {
|
||||
it('should create a new object of type LinearGradient', () => {
|
||||
const gradient = new LinearGradient()
|
||||
expect(gradient).toBeInstanceOf(LinearGradient)
|
||||
expect(gradient.type).toBe('linearGradient')
|
||||
|
@ -4,7 +4,7 @@ import { RadialGradient } from './radial'
|
||||
|
||||
describe('RadialGradient', () => {
|
||||
describe('constructor()', () => {
|
||||
it('creates a new object of type RadialGradient', () => {
|
||||
it('should create a new object of type RadialGradient', () => {
|
||||
const gradient = new RadialGradient()
|
||||
expect(gradient).toBeInstanceOf(RadialGradient)
|
||||
expect(gradient.type).toBe('radialGradient')
|
||||
|
@ -107,25 +107,25 @@ describe('Marker', () => {
|
||||
expect(path.reference('marker-end')).toBeNull()
|
||||
})
|
||||
|
||||
it('creates a marker and applies it to the marker-start attribute', () => {
|
||||
it('should create a marker and applies it to the marker-start attribute', () => {
|
||||
path.marker('start', 10, 12)
|
||||
const marker = path.reference('marker-start')!
|
||||
expect(path.node.getAttribute('marker-start')).toBe(marker.toString())
|
||||
})
|
||||
|
||||
it('creates a marker and applies it to the marker-mid attribute', () => {
|
||||
it('should create a marker and applies it to the marker-mid attribute', () => {
|
||||
path.marker('mid', 10, 12)
|
||||
const marker = path.reference('marker-mid')!
|
||||
expect(path.node.getAttribute('marker-mid')).toBe(marker.toString())
|
||||
})
|
||||
|
||||
it('creates a marker and applies it to the marker-end attribute', () => {
|
||||
it('should create a marker and applies it to the marker-end attribute', () => {
|
||||
path.marker('end', 10, 12)
|
||||
const marker = path.reference('marker-end')!
|
||||
expect(path.node.getAttribute('marker-end')).toBe(marker.toString())
|
||||
})
|
||||
|
||||
it('creates a marker and applies it to the marker attribute', () => {
|
||||
it('should create a marker and applies it to the marker attribute', () => {
|
||||
path.marker('all', 10, 12)
|
||||
const marker = path.reference('marker')!
|
||||
expect(path.node.getAttribute('marker')).toBe(marker.toString())
|
||||
|
Reference in New Issue
Block a user