Skip to content

Commit

Permalink
Add tests with non-OSI packages under OSI constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Sep 2, 2024
1 parent fd2be2a commit a97f21c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/osi-fail/.licensee.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"licenses": {
"osi": true
},
"packages": {}
}
7 changes: 7 additions & 0 deletions tests/osi-fail/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "osi-fail",
"dependencies": {
"cc0-1.0-licensed": "1.0.0"
},
"private": true
}
5 changes: 5 additions & 0 deletions tests/osi-fail/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var tap = require('tap')

var results = require('../run')([], __dirname)

tap.equal(results.status, 1)
7 changes: 7 additions & 0 deletions tests/osi-flag-fail/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "osi-flag-pass",
"dependencies": {
"cc0-1.0-licensed": "1.0.0"
},
"private": true
}
5 changes: 5 additions & 0 deletions tests/osi-flag-fail/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var tap = require('tap')

var results = require('../run')(['--osi'], __dirname)

tap.equal(results.status, 1)

0 comments on commit a97f21c

Please sign in to comment.