Skip to content

Commit 056b475

Browse files
committed
tests: adds additional coverage for the 1.2 version of the specification
1 parent 19c7cc8 commit 056b475

10 files changed

Lines changed: 62 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
overlay: 1.2.0
2+
info:
3+
title: Action copy must be a string
4+
version: 1.0.0
5+
actions:
6+
- target: '$'
7+
copy: 100
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
overlay: 1.2.0
2+
info:
3+
title: Action remove must be a boolean
4+
version: 1.0.0
5+
actions:
6+
- target: '$'
7+
remove: maybe
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
overlay: 1.2.0
2+
info:
3+
title: Actions must be an array
4+
version: 1.0.0
5+
actions: {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
overlay: 1.2.0
2+
info:
3+
title: Action items must be objects
4+
version: 1.0.0
5+
actions:
6+
- 123
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
overlay: 1.2.0
2+
info:
3+
title: Invalid info description type
4+
version: 1.0.0
5+
description: 100
6+
actions:
7+
- target: '$'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
overlay: 1.2.0
2+
info:
3+
title: Info invalid property
4+
version: 1.0.0
5+
invalidProperty: true
6+
actions:
7+
- target: '$'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
overlay: 1.2.0
2+
info: invalid
3+
actions:
4+
- target: '$'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
overlay: 1.2.0
2+
info:
3+
title: 100
4+
version: 1.0.0
5+
actions:
6+
- target: '$'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
overlay: 1.2.0
2+
info:
3+
title: Invalid info version type
4+
version: false
5+
actions:
6+
- target: '$'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
overlay: 1.2.0
2+
info:
3+
title: Root invalid property
4+
version: 1.0.0
5+
actions:
6+
- target: '$'
7+
invalidProperty: true

0 commit comments

Comments
 (0)