瀏覽代碼

restore CI

Olivier Massot 3 年之前
父節點
當前提交
ca733a59ef

+ 0 - 1
.gitlab-ci.yml

@@ -5,7 +5,6 @@ before_script:
   - apt-get update
   - curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
   - apt-get install -y nodejs
-  - npm install --global yarn
   - yarn install
 
 unit:

+ 1 - 1
tests/unit/services/connection/urlBuilder.spec.ts

@@ -109,7 +109,7 @@ describe('invoke()', () => {
         }
       }
       jest.useFakeTimers('modern');
-      jest.setSystemTime(new Date(2020, 3, 1));
+      jest.setSystemTime(1585692000000);
       expect(UrlBuilder.build(args)).toEqual('/api/files/1/download/50x50?1585692000000')
       jest.useRealTimers();
     })

+ 1 - 1
tests/unit/services/connection/urlOptionsBuilder.spec.ts

@@ -14,7 +14,7 @@ describe('build()', () => {
     }
 
     jest.useFakeTimers('modern');
-    jest.setSystemTime(new Date(2020, 3, 1));
+    jest.setSystemTime(1585692000000);
 
     const options = UrlOptionsBuilder.build(args)
     expect(options.pop()).toEqual('1585692000000')