Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
21
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
idatt2106_2022_02
boco-frontend
Commits
1eb577eb
Commit
1eb577eb
authored
2 years ago
by
Sander August Heggland Schrader
Browse files
Options
Downloads
Patches
Plain Diff
Fixed test and added update when button is clicked
parent
09b037f5
No related branches found
Branches containing commit
No related tags found
1 merge request
!156
Testing2
Pipeline
#182359
passed with stage
in 1 minute and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/ChatComponents/RentalMessage.vue
+2
-0
2 additions, 0 deletions
src/components/ChatComponents/RentalMessage.vue
tests/unit/component-tests/ChatComponentsTest/RentalMessage.spec.js
+8
-0
8 additions, 0 deletions
.../component-tests/ChatComponentsTest/RentalMessage.spec.js
with
10 additions
and
0 deletions
src/components/ChatComponents/RentalMessage.vue
+
2
−
0
View file @
1eb577eb
...
...
@@ -100,12 +100,14 @@ export default {
null
,
{
headers
:
tokenHeader
()
}
);
this
.
$router
.
go
(
0
);
},
async
reject
()
{
await
axios
.
delete
(
process
.
env
.
VUE_APP_BASEURL
+
`renting/
${
this
.
rent
.
rentId
}
/delete`
,
{
headers
:
tokenHeader
()
}
);
this
.
$router
.
go
(
0
);
},
async
getImage
()
{
let
images
=
await
getItemPictures
(
this
.
rent
.
listingId
);
...
...
This diff is collapsed.
Click to expand it.
tests/unit/component-tests/ChatComponentsTest/RentalMessage.spec.js
+
8
−
0
View file @
1eb577eb
...
...
@@ -27,6 +27,9 @@ jest.mock("axios");
describe
(
"
RentalMessage.vue
"
,
()
=>
{
let
wrapper
;
const
mockRouter
=
{
go
:
jest
.
fn
(),
}
beforeEach
(()
=>
{
wrapper
=
shallowMount
(
RentalMessage
,
{
propsData
:
{
...
...
@@ -47,6 +50,11 @@ describe("RentalMessage.vue", () => {
deleted
:
false
,
},
},
global
:
{
mocks
:
{
$router
:
mockRouter
,
},
}
});
});
...
...
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