Support more directions #15

Merged
itaigilo-inv merged 2 commits from support-more-directions into master 2021-07-21 13:34:54 +00:00
Showing only changes of commit a3494b3421 - Show all commits

View file

@ -134,7 +134,11 @@ describe('lib/parser.js', function () {
describe('parse all linear directional', function() { describe('parse all linear directional', function() {
[ [
{type: 'angular', unparsedValue: '-145deg', value: '-145'}, {type: 'angular', unparsedValue: '-145deg', value: '-145'},
{type: 'directional', unparsedValue: 'to left top', value: 'left top'} {type: 'directional', unparsedValue: 'to left top', value: 'left top'},
{type: 'directional', unparsedValue: 'to top left', value: 'top left'},
{type: 'directional', unparsedValue: 'to top right', value: 'top right'},
{type: 'directional', unparsedValue: 'to bottom left', value: 'bottom left'},
{type: 'directional', unparsedValue: 'to bottom right', value: 'bottom right'}
].forEach(function(orientation) { ].forEach(function(orientation) {
describe('parse orientation ' + orientation.type, function() { describe('parse orientation ' + orientation.type, function() {
beforeEach(function() { beforeEach(function() {