-
Notifications
You must be signed in to change notification settings - Fork 15
[♻] Improve ZipFileMock constructor #1218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The head ref may contain hidden characters: "\u267B-zipfile-mock-changes-and-test"
Changes from 4 commits
9e59c12
6260406
20095c9
899fc20
0c46fe2
aa76a49
f7c9dfd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,13 +7,12 @@ import ReportMetadataReport from "../../src/views/ministories/reportMetadata"; | |
| import { createInteractedWithAdvertisersDataset } from "../datasets/interacted-with-advertisers-data"; | ||
| import { createLanguageSettingsData } from "../datasets/language-and-locale-data"; | ||
| import { createOffFacebookEventsSimpleData } from "../datasets/off-facebook-events-data"; | ||
| import { MINIMUM_FILE_SIZE } from "@polypoly-eu/poly-import"; | ||
| import { MINIMUM_FILE_SIZE, ZipFileMock } from "@polypoly-eu/poly-import"; | ||
| import { runAnalysisForExport } from "../utils/analyses-execution"; | ||
| import { | ||
| expectActiveAnalysis, | ||
| expectAnalysisSuccessStatus, | ||
| } from "../utils/analysis-assertions"; | ||
| import { createMockedZip } from "../utils/data-creation"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can createMockedZip be removed now?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean, from all over? It's used in some other places. I'd have to check.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, it can be removed. It's essentially doing what the new ctor is doing. Only... It's all over, as said. I'll probably just refactor it to avoid extensive changes. |
||
|
|
||
| describe("Report metadata analysis", () => { | ||
| const preferedLanguage = { | ||
|
|
@@ -26,7 +25,7 @@ describe("Report metadata analysis", () => { | |
| let jsonReport = null; | ||
|
|
||
| beforeAll(async () => { | ||
| const zipFile = createMockedZip([ | ||
| const zipFile = new ZipFileMock([ | ||
| [ | ||
| OFF_FACEBOOK_EVENTS_FILE_PATH, | ||
| createOffFacebookEventsSimpleData(), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This should still be possible to be const, since it's not being reassigned.