fix: 🐛 typos

This commit is contained in:
bubkoo
2021-06-15 11:51:11 +08:00
committed by 问崖
parent 80b33a57a7
commit 3ccdf2d198
3 changed files with 6 additions and 6 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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())