Commit aed5c9ee authored by Scott Hampton's avatar Scott Hampton

Removed permission prop from environments spec

`canCreateDeployment` was no longer needed in these specs.

Also prettified some files.
parent 4eaeffa9
...@@ -26,7 +26,6 @@ describe('Environment item', () => { ...@@ -26,7 +26,6 @@ describe('Environment item', () => {
component = new EnvironmentItem({ component = new EnvironmentItem({
propsData: { propsData: {
model: mockItem, model: mockItem,
canCreateDeployment: false,
canReadEnvironment: true, canReadEnvironment: true,
toggleDeployBoard: () => {}, toggleDeployBoard: () => {},
store: {}, store: {},
...@@ -121,7 +120,6 @@ describe('Environment item', () => { ...@@ -121,7 +120,6 @@ describe('Environment item', () => {
component = new EnvironmentItem({ component = new EnvironmentItem({
propsData: { propsData: {
model: environment, model: environment,
canCreateDeployment: true,
canReadEnvironment: true, canReadEnvironment: true,
toggleDeployBoard: () => {}, toggleDeployBoard: () => {},
store: {}, store: {},
......
...@@ -27,7 +27,6 @@ describe('Environment table', () => { ...@@ -27,7 +27,6 @@ describe('Environment table', () => {
vm = mountComponent(Component, { vm = mountComponent(Component, {
environments: [mockItem], environments: [mockItem],
canCreateDeployment: false,
canReadEnvironment: true, canReadEnvironment: true,
// ee-only start // ee-only start
canaryDeploymentFeatureId: 'canary_deployment', canaryDeploymentFeatureId: 'canary_deployment',
......
...@@ -9,7 +9,6 @@ describe('Environment', () => { ...@@ -9,7 +9,6 @@ describe('Environment', () => {
const mockData = { const mockData = {
endpoint: 'environments.json', endpoint: 'environments.json',
canCreateEnvironment: true, canCreateEnvironment: true,
canCreateDeployment: true,
canReadEnvironment: true, canReadEnvironment: true,
cssContainerClass: 'container', cssContainerClass: 'container',
newEnvironmentPath: 'environments/new', newEnvironmentPath: 'environments/new',
......
...@@ -13,7 +13,6 @@ describe('Environments Folder View', () => { ...@@ -13,7 +13,6 @@ describe('Environments Folder View', () => {
const mockData = { const mockData = {
endpoint: 'environments.json', endpoint: 'environments.json',
folderName: 'review', folderName: 'review',
canCreateDeployment: true,
canReadEnvironment: true, canReadEnvironment: true,
cssContainerClass: 'container', cssContainerClass: 'container',
// ee-only start // ee-only start
......
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