소스 검색

restore CI

Olivier Massot 3 년 전
부모
커밋
ca733a59ef
3개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 1
      .gitlab-ci.yml
  2. 1 1
      tests/unit/services/connection/urlBuilder.spec.ts
  3. 1 1
      tests/unit/services/connection/urlOptionsBuilder.spec.ts

+ 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')