Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fahrtenbuch
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWP WS21_22 - Fahrtenbuch
Team Einhorn
fahrtenbuch
Commits
d1258bf5
Commit
d1258bf5
authored
3 years ago
by
Alexander Rudolph
Browse files
Options
Downloads
Patches
Plain Diff
removed connection tests, since they're faulty and should be replaced by API tests
parent
39f675a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/tests/connection.test.ts
+0
-32
0 additions, 32 deletions
server/tests/connection.test.ts
with
0 additions
and
32 deletions
server/tests/connection.test.ts
deleted
100644 → 0
+
0
−
32
View file @
39f675a3
require
(
"
dotenv
"
).
config
();
import
request
from
"
supertest
"
;
describe
(
"
GET Endpoints
"
,
()
=>
{
/*
* NOTICE:
* Those are structural test examples.
* I've made it, that they all expect 404 errors,
* since the database models have changes while the API hasn't
*/
it
(
"
if response is 200, server is alive
"
,
(
done
)
=>
{
request
(
"
http://localhost:4000
"
)
.
get
(
"
/
"
)
.
set
(
"
Accept
"
,
"
text/html
"
)
.
expect
(
"
Content-Type
"
,
/html/
)
.
expect
(
200
,
done
);
});
it
(
"
Get Vehicle Type with ID (returns 404 since no data)
"
,
(
done
)
=>
{
request
(
"
http://localhost:4000
"
)
.
get
(
"
/vehicleType/1
"
)
.
set
(
"
Accept
"
,
"
text/html
"
)
.
expect
(
"
Content-Type
"
,
/html/
)
.
expect
(
404
,
done
);
});
it
(
"
Get all Vehicle Types
"
,
(
done
)
=>
{
request
(
"
http://localhost:4000
"
)
.
get
(
"
/vehicleType
"
)
.
set
(
"
Accept
"
,
"
text/html
"
)
.
expect
(
"
Content-Type
"
,
/html/
)
.
expect
(
404
,
done
);
});
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment