Skip to content

Commit 818c2da

Browse files
author
Alvaro Muñoz
committed
fix Spife tests (without heuristics)
1 parent 4cf7299 commit 818c2da

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

javascript/ql/test/library-tests/frameworks/Spife/lib/views/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function test2(req, context) { // test: handler
8080
}
8181

8282
function test3(req, context) { // test: candidateHandler
83-
return reply('<p>' + req.query.name + '</p>') // test: source, stackTraceExposureSink, !xssSink, !xss
83+
return reply('<p>' + req.query.name + '</p>')
8484
}
8585

8686
function test4(req, context) { // test: handler

javascript/ql/test/library-tests/frameworks/Spife/tests.expected

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ passingPositiveTests
5050
| PASSED | source | lib/views/index.js:67:94:67:184 | // test ... inition |
5151
| PASSED | source | lib/views/index.js:75:41:75:79 | // test ... ureSink |
5252
| PASSED | source | lib/views/index.js:77:94:77:166 | // test ... inition |
53-
| PASSED | source | lib/views/index.js:83:49:83:103 | // test ... k, !xss |
5453
| PASSED | source | lib/views/index.js:87:25:87:39 | // test: source |
5554
| PASSED | source | lib/views/index.js:94:25:94:39 | // test: source |
5655
| PASSED | source | lib/views/index.js:101:25:101:39 | // test: source |
@@ -63,7 +62,6 @@ passingPositiveTests
6362
| PASSED | stackTraceExposureSink | lib/views/index.js:67:94:67:184 | // test ... inition |
6463
| PASSED | stackTraceExposureSink | lib/views/index.js:75:41:75:79 | // test ... ureSink |
6564
| PASSED | stackTraceExposureSink | lib/views/index.js:77:94:77:166 | // test ... inition |
66-
| PASSED | stackTraceExposureSink | lib/views/index.js:83:49:83:103 | // test ... k, !xss |
6765
| PASSED | stackTraceExposureSink | lib/views/index.js:90:57:90:121 | // test ... inition |
6866
| PASSED | stackTraceExposureSink | lib/views/index.js:97:30:97:76 | // test ... k, !xss |
6967
| PASSED | stackTraceExposureSink | lib/views/index.js:105:59:105:123 | // test ... inition |
@@ -80,13 +78,11 @@ failingPositiveTests
8078
passingNegativeTests
8179
| PASSED | !xss | lib/views/index.js:67:94:67:184 | // test ... inition |
8280
| PASSED | !xss | lib/views/index.js:77:94:77:166 | // test ... inition |
83-
| PASSED | !xss | lib/views/index.js:83:49:83:103 | // test ... k, !xss |
8481
| PASSED | !xss | lib/views/index.js:90:57:90:121 | // test ... inition |
8582
| PASSED | !xss | lib/views/index.js:97:30:97:76 | // test ... k, !xss |
8683
| PASSED | !xss | lib/views/index.js:105:59:105:123 | // test ... inition |
8784
| PASSED | !xssSink | lib/views/index.js:67:94:67:184 | // test ... inition |
8885
| PASSED | !xssSink | lib/views/index.js:77:94:77:166 | // test ... inition |
89-
| PASSED | !xssSink | lib/views/index.js:83:49:83:103 | // test ... k, !xss |
9086
| PASSED | !xssSink | lib/views/index.js:90:57:90:121 | // test ... inition |
9187
| PASSED | !xssSink | lib/views/index.js:97:30:97:76 | // test ... k, !xss |
9288
| PASSED | !xssSink | lib/views/index.js:105:59:105:123 | // test ... inition |

javascript/ql/test/library-tests/frameworks/Spife/tests.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import semmle.javascript.security.dataflow.ServerSideUrlRedirectCustomizations
66
import semmle.javascript.security.dataflow.RequestForgeryCustomizations
77
import semmle.javascript.security.dataflow.ReflectedXssCustomizations
88
import semmle.javascript.security.dataflow.ReflectedXssQuery as XssConfig
9-
import semmle.javascript.heuristics.AdditionalRouteHandlers
109

1110
class InlineTest extends LineComment {
1211
string tests;

0 commit comments

Comments
 (0)