Commit 382ac4d6 authored by Gilang Gumilar's avatar Gilang Gumilar Committed by Andrew Fontaine

Update deprecated slot syntax in...

Update deprecated slot syntax in `./app/assets/javascripts/environments/components/environments_app.vue`
parent 5f0c1a4c
......@@ -158,13 +158,13 @@ export default {
:deploy-boards-help-path="deployBoardsHelpPath"
@onChangePage="onChangePage"
>
<template v-if="!isLoading && state.environments.length === 0" #emptyState>
<empty-state
v-if="!isLoading && state.environments.length === 0"
slot="emptyState"
:new-path="newEnvironmentPath"
:help-path="helpPagePath"
:can-create-environment="canCreateEnvironment"
/>
</template>
</container>
</div>
</template>
---
title: Update deprecated slot syntax in ./app/assets/javascripts/environments/components/environments_app.vue
merge_request: 32011
author: Gilang Gumilar
type: other
......@@ -53,7 +53,7 @@ describe('Environment', () => {
describe('without environments', () => {
beforeEach(() => {
mockRequest(200, { environments: [] });
return createWrapper(true);
return createWrapper();
});
it('should render the empty state', () => {
......@@ -118,7 +118,7 @@ describe('Environment', () => {
describe('unsuccessful request', () => {
beforeEach(() => {
mockRequest(500, {});
return createWrapper(true);
return createWrapper();
});
it('should render empty state', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment