Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/repository/components/table/index_spec.js')
-rw-r--r--spec/frontend/repository/components/table/index_spec.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/spec/frontend/repository/components/table/index_spec.js b/spec/frontend/repository/components/table/index_spec.js
index 9db90839b29..ed50f292b8c 100644
--- a/spec/frontend/repository/components/table/index_spec.js
+++ b/spec/frontend/repository/components/table/index_spec.js
@@ -23,6 +23,15 @@ const MOCK_BLOBS = [
type: 'blob',
webUrl: 'http://test.com',
},
+ {
+ id: '125abc',
+ sha: '125abc',
+ flatPath: 'blob3',
+ name: 'blob3.md',
+ type: 'blob',
+ webUrl: 'http://test.com',
+ mode: '120000',
+ },
];
function factory({ path, isLoading = false, entries = {} }) {
@@ -74,7 +83,9 @@ describe('Repository table component', () => {
},
});
- expect(vm.find(TableRow).exists()).toBe(true);
- expect(vm.findAll(TableRow).length).toBe(2);
+ const rows = vm.findAll(TableRow);
+
+ expect(rows.length).toEqual(3);
+ expect(rows.at(2).attributes().mode).toEqual('120000');
});
});