Skip to content

Commit

Permalink
test: Add negative examples
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Jan 7, 2025
1 parent 9b3606f commit 81f02d1
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit test suite for Todo App</title>
<script
src="../resources/sap/ui/test/starter/createSuite.js"
data-sap-ui-testsuite="test-resources/sap/f/testsuite.qunit"
data-sap-ui-resource-roots='{
"test-resources.sap.f": "./"
}'
></script>
</head>
<body>
</body>
</html>
21 changes: 21 additions & 0 deletions test/fixtures/linter/projects/sap.f/test/sap/f/testsuite.qunit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sap.ui.define(function () {
"use strict";
return {
name: "QUnit test suite for sap.f",
defaults: {
page: "ui5://test-resources/sap/f/Test.qunit.html?testsuite={suite}&test={name}",
qunit: {
version: 2
},
sinon: {
version: 4
},
ui5: {
language: "EN",
theme: "sap_horizon"
}
},
tests: {
}
};
});
8 changes: 8 additions & 0 deletions test/lib/linter/snapshots/linter.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,14 @@ Generated by [AVA](https://avajs.dev).
],
warningCount: 0,
},
{
coverageInfo: [],
errorCount: 0,
fatalErrorCount: 0,
filePath: 'test/sap/f/testsuite.qunit.js',
messages: [],
warningCount: 0,
},
]

## lint: All files of mocked minimal sap.ui.core library
Expand Down
Binary file modified test/lib/linter/snapshots/linter.ts.snap
Binary file not shown.

0 comments on commit 81f02d1

Please sign in to comment.