Commit 803c7685 authored by Fernando's avatar Fernando

Fix typo in license compliance unit tests

* Rename findNameSeciton to findNameSection
parent 1dfa821d
...@@ -17,7 +17,7 @@ describe('LicensesTableRow component', () => { ...@@ -17,7 +17,7 @@ describe('LicensesTableRow component', () => {
const findLoading = () => wrapper.find(GlSkeletonLoading); const findLoading = () => wrapper.find(GlSkeletonLoading);
const findContent = () => wrapper.find('.js-license-row'); const findContent = () => wrapper.find('.js-license-row');
const findNameSeciton = () => findContent().find('.section-30'); const findNameSection = () => findContent().find('.section-30');
const findComponentSection = () => findContent().find('.section-70'); const findComponentSection = () => findContent().find('.section-70');
beforeEach(() => { beforeEach(() => {
...@@ -61,7 +61,7 @@ describe('LicensesTableRow component', () => { ...@@ -61,7 +61,7 @@ describe('LicensesTableRow component', () => {
}); });
it('shows name', () => { it('shows name', () => {
const nameLink = findNameSeciton().find(GlLink); const nameLink = findNameSection().find(GlLink);
expect(nameLink.exists()).toBe(true); expect(nameLink.exists()).toBe(true);
expect(nameLink.attributes('href')).toEqual(license.url); expect(nameLink.attributes('href')).toEqual(license.url);
...@@ -93,7 +93,7 @@ describe('LicensesTableRow component', () => { ...@@ -93,7 +93,7 @@ describe('LicensesTableRow component', () => {
}); });
it('renders the GlFriendlyWrap and GlLink components', () => { it('renders the GlFriendlyWrap and GlLink components', () => {
const nameSection = findNameSeciton(); const nameSection = findNameSection();
expect(nameSection.find(GlLink).exists()).toBe(true); expect(nameSection.find(GlLink).exists()).toBe(true);
expect(nameSection.find(GlFriendlyWrap).exists()).toBe(true); expect(nameSection.find(GlFriendlyWrap).exists()).toBe(true);
...@@ -112,7 +112,7 @@ describe('LicensesTableRow component', () => { ...@@ -112,7 +112,7 @@ describe('LicensesTableRow component', () => {
}); });
it('does not show url link for name', () => { it('does not show url link for name', () => {
const nameSection = findNameSeciton(); const nameSection = findNameSection();
expect(nameSection.text()).toContain(license.name); expect(nameSection.text()).toContain(license.name);
expect(nameSection.find(GlLink).exists()).toBe(false); expect(nameSection.find(GlLink).exists()).toBe(false);
......
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