Fixed tests, added tests, fixed ducked up things

This commit is contained in:
Alexander Cerutti
2021-10-11 23:04:09 +02:00
parent cba4d10fd0
commit 928081ecfc
6 changed files with 216 additions and 134 deletions

View File

@@ -51,7 +51,7 @@ export default class Bundle {
mimeType: `${Mime.type}/${Mime.subtype}`,
): [Bundle, Function] {
const bundle = new Bundle(mimeType);
return [bundle, bundle[freezeSymbol]];
return [bundle, () => bundle[freezeSymbol]()];
}
/**
@@ -69,8 +69,8 @@ export default class Bundle {
}
/**
* Tells if this bundle still allows files to be added
* @returns
* Tells if this bundle still allows files to be added.
* @returns false if files are allowed, true otherwise
*/
public get isFrozen() {