Skip to content

Commit

Permalink
Remove unnecessary pacakge-lock.json file from tests/files (#2440)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrieinv authored Aug 23, 2023
1 parent 4d7b34a commit 79a25af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6,414 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function withRemoteVideo_storeLocally()
$this->assertTrue($zipArchive->open($this->exportDisk->path($archivePath)));
$contentJson = $zipArchive->getFromName('content/content.json');
$zipArchive->extractTo($this->exportDisk->path(sprintf(ContentStorageSettings::EXPORT_PATH, $exportName)));
$this->assertEquals(100, $zipArchive->locateName("content/videos/sampleVideo.mp4"));
$this->assertEquals(99, $zipArchive->locateName("content/videos/sampleVideo.mp4"));
$this->assertJson($contentJson);
$zipArchive->close();
$contentDecoded = json_decode($contentJson);
Expand Down Expand Up @@ -337,8 +337,8 @@ public function withRemoteVideoAndImage_storeLocally()
$this->assertTrue($zipArchive->open($this->exportDisk->path($archivePath)));
$contentJson = $zipArchive->getFromName('content/content.json');
$zipArchive->extractTo($this->exportDisk->path(sprintf(ContentStorageSettings::EXPORT_PATH, $exportName)));
$this->assertEquals(101, $zipArchive->locateName("content/videos/sampleVideo.mp4"));
$this->assertEquals(100, $zipArchive->locateName("content/images/tree.jpg"));
$this->assertEquals(100, $zipArchive->locateName("content/videos/sampleVideo.mp4"));
$this->assertEquals(99, $zipArchive->locateName("content/images/tree.jpg"));
$this->assertJson($contentJson);
$zipArchive->close();
$contentDecoded = json_decode($contentJson);
Expand Down Expand Up @@ -411,8 +411,8 @@ public function withRemoteCaptions_storeLocally()
$this->assertTrue($zipArchive->open($this->exportDisk->path($archivePath)));
$contentJson = $zipArchive->getFromName('content/content.json');
$zipArchive->extractTo($this->exportDisk->path(sprintf(ContentStorageSettings::EXPORT_PATH, $exportName)));
$this->assertEquals(100, $zipArchive->locateName("content/files/videoCaption.vtt"));
$this->assertEquals(101, $zipArchive->locateName("content/videos/sampleVideo.mp4"));
$this->assertEquals(99, $zipArchive->locateName("content/files/videoCaption.vtt"));
$this->assertEquals(100, $zipArchive->locateName("content/videos/sampleVideo.mp4"));
$this->assertJson($contentJson);
$zipArchive->close();
$contentDecoded = json_decode($contentJson);
Expand Down
Loading

0 comments on commit 79a25af

Please sign in to comment.