summaryrefslogtreecommitdiff
path: root/spec/javascripts/deploy_keys
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-12-07 11:09:17 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-12-07 11:09:17 +0000
commit139ce1c44587f6920cdb1982c33714ff6cf910b7 (patch)
tree53ce16d2c35b7fa711c860f8eb0ed810a93e9b8c /spec/javascripts/deploy_keys
parentf1a98477014ceee1738a6994da9fd17dd4ccea00 (diff)
downloadgitlab-ce-139ce1c44587f6920cdb1982c33714ff6cf910b7.tar.gz
Export date utility functions as ES6 modules
Diffstat (limited to 'spec/javascripts/deploy_keys')
-rw-r--r--spec/javascripts/deploy_keys/components/key_spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/deploy_keys/components/key_spec.js b/spec/javascripts/deploy_keys/components/key_spec.js
index 5b64cbb2dfc..2f28c5bbf01 100644
--- a/spec/javascripts/deploy_keys/components/key_spec.js
+++ b/spec/javascripts/deploy_keys/components/key_spec.js
@@ -1,6 +1,7 @@
import Vue from 'vue';
import DeployKeysStore from '~/deploy_keys/store';
import key from '~/deploy_keys/components/key.vue';
+import { getTimeago } from '~/lib/utils/datetime_utility';
describe('Deploy keys key', () => {
let vm;
@@ -37,7 +38,7 @@ describe('Deploy keys key', () => {
it('renders human friendly formatted created date', () => {
expect(
vm.$el.querySelector('.key-created-at').textContent.trim(),
- ).toBe(`created ${gl.utils.getTimeago().format(deployKey.created_at)}`);
+ ).toBe(`created ${getTimeago().format(deployKey.created_at)}`);
});
it('shows edit button', () => {