Skip to content

Commit 72f510d

Browse files
committed
Remove unnecessary fields, move test under components folder
1 parent 5b37a82 commit 72f510d

File tree

4 files changed

+2
-177
lines changed

4 files changed

+2
-177
lines changed

src/components/HTMLGenerator.vue

-24
Original file line numberDiff line numberDiff line change
@@ -95,28 +95,6 @@
9595
</b-field>
9696
<p class='help'>The URL to which the work should be attributed.</p>
9797
</div>
98-
<div class='column'>
99-
<b-field label='Source Work URL'>
100-
<b-input
101-
v-model='sourceWorkURL'
102-
placeholder='sourceWorkURL'
103-
></b-input>
104-
</b-field>
105-
<p class='help'>The URL of the work upon which this work is based or derived.</p>
106-
</div>
107-
</div>
108-
</div>
109-
<div class='metadata-input-row'>
110-
<div class='columns'>
111-
<div class='column'>
112-
<b-field label='More Permissions URL'>
113-
<b-input
114-
v-model='morePermsURL'
115-
placeholder='morePermsURL'
116-
></b-input>
117-
</b-field>
118-
<p class='help'>A URL where a user can find information about obtaining rights that are not already permitted by the CC license.</p>
119-
</div>
12098
<div class='column'>
12199
<b-field label='Attribute Work to Name'>
122100
<b-input
@@ -153,8 +131,6 @@ export default {
153131
workTitle: '',
154132
attributeToName: '',
155133
attributeToURL: '',
156-
sourceWorkURL: '',
157-
morePermsURL: '',
158134
workLocation: ''
159135
}
160136
},

test/e2e/specs/HTMLGeneratorTest.js

-92
This file was deleted.

test/unit/specs/components/HTMLGenerator.spec.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@ const defaultLicenseURL = 'https://creativecommons.org/licenses/by/4.0/?ref=ccch
1616
const newObject = {
1717
workTitle: 'newWorkTitle',
1818
attributeToName: 'newAttributeToName',
19-
attributeToURL: 'https://newAttributeToURL.com',
20-
sourceWorkURL: 'https://newSourceWorkURL.com',
21-
morePermsURL: 'https://newMorePermURL.com',
22-
workLocation: 'https://newWorkLocation.com'
19+
attributeToURL: 'https://new_attribute_to_url.com',
20+
workLocation: 'https://new_work_location.com'
2321
}
2422

2523
const localVue = createLocalVue()
2624
localVue.use(Buefy)
2725

2826
describe('HTMLGenerator.vue', () => {
29-
3027
const wrapper = shallowMount(HTMLGenerator, {
3128
localVue,
3229
propsData: {

test/unit/specs/components/__snapshots__/HTMLGenerator.spec.js.snap

-56
Original file line numberDiff line numberDiff line change
@@ -176,62 +176,6 @@ exports[`HTMLGenerator.vue renders the correct markup 1`] = `
176176
</p>
177177
</div>
178178
179-
<div
180-
class="column"
181-
>
182-
<b-field-stub
183-
addons="true"
184-
label="Source Work URL"
185-
>
186-
<b-input-stub
187-
customclass=""
188-
hascounter="true"
189-
placeholder="sourceWorkURL"
190-
type="text"
191-
usehtml5validation="true"
192-
value=""
193-
/>
194-
</b-field-stub>
195-
196-
<p
197-
class="help"
198-
>
199-
The URL of the work upon which this work is based or derived.
200-
</p>
201-
</div>
202-
</div>
203-
</div>
204-
205-
<div
206-
class="metadata-input-row"
207-
>
208-
<div
209-
class="columns"
210-
>
211-
<div
212-
class="column"
213-
>
214-
<b-field-stub
215-
addons="true"
216-
label="More Permissions URL"
217-
>
218-
<b-input-stub
219-
customclass=""
220-
hascounter="true"
221-
placeholder="morePermsURL"
222-
type="text"
223-
usehtml5validation="true"
224-
value=""
225-
/>
226-
</b-field-stub>
227-
228-
<p
229-
class="help"
230-
>
231-
A URL where a user can find information about obtaining rights that are not already permitted by the CC license.
232-
</p>
233-
</div>
234-
235179
<div
236180
class="column"
237181
>

0 commit comments

Comments
 (0)