chore: fix typos in 'spec/' folder (and one in 'lib/' folder) (#43374)
This commit is contained in:
parent
4ae43dcb3b
commit
ae0c8881c3
6 changed files with 10 additions and 10 deletions
|
@ -88,7 +88,7 @@ describe('fuses', function () {
|
|||
|
||||
afterEach(async () => {
|
||||
for (let attempt = 0; attempt <= 3; attempt++) {
|
||||
// Somtimes windows holds on to a DLL during the crash for a little bit, so we try a few times to delete it
|
||||
// Sometimes windows holds on to a DLL during the crash for a little bit, so we try a few times to delete it
|
||||
if (attempt > 0) await new Promise((resolve) => setTimeout(resolve, 500 * attempt));
|
||||
try {
|
||||
await originalFs.promises.rm(tmpDir, { recursive: true });
|
||||
|
@ -133,7 +133,7 @@ describe('fuses', function () {
|
|||
|
||||
it('fatals if the integrity header does not match', async () => {
|
||||
const asar = await originalFs.promises.readFile(pathToAsar);
|
||||
// Ensure that the header stil starts with the same thing, if build system
|
||||
// Ensure that the header still starts with the same thing, if build system
|
||||
// things result in the header changing we should update this test
|
||||
expect(asar.toString()).to.contain('{"files":{"default_app.js"');
|
||||
await originalFs.promises.writeFile(pathToAsar, bufferReplace(asar, '{"files":{"default_app.js"', '{"files":{"default_oop.js"'));
|
||||
|
@ -145,7 +145,7 @@ describe('fuses', function () {
|
|||
|
||||
it('fatals if a loaded main process JS file does not match', async () => {
|
||||
const asar = await originalFs.promises.readFile(pathToAsar);
|
||||
// Ensure that the header stil starts with the same thing, if build system
|
||||
// Ensure that the header still starts with the same thing, if build system
|
||||
// things result in the header changing we should update this test
|
||||
expect(asar.toString()).to.contain('Invalid Usage');
|
||||
await originalFs.promises.writeFile(pathToAsar, bufferReplace(asar, 'Invalid Usage', 'VVValid Usage'));
|
||||
|
@ -158,7 +158,7 @@ describe('fuses', function () {
|
|||
|
||||
it('fatals if a renderer content file does not match', async () => {
|
||||
const asar = await originalFs.promises.readFile(pathToAsar);
|
||||
// Ensure that the header stil starts with the same thing, if build system
|
||||
// Ensure that the header still starts with the same thing, if build system
|
||||
// things result in the header changing we should update this test
|
||||
expect(asar.toString()).to.contain('require-trusted-types-for');
|
||||
await originalFs.promises.writeFile(pathToAsar, bufferReplace(asar, 'require-trusted-types-for', 'require-trusted-types-not'));
|
||||
|
@ -176,7 +176,7 @@ describe('fuses', function () {
|
|||
|
||||
it('does nothing if the integrity header does not match', async () => {
|
||||
const asar = await originalFs.promises.readFile(pathToAsar);
|
||||
// Ensure that the header stil starts with the same thing, if build system
|
||||
// Ensure that the header still starts with the same thing, if build system
|
||||
// things result in the header changing we should update this test
|
||||
expect(asar.toString()).to.contain('{"files":{"default_app.js"');
|
||||
await originalFs.promises.writeFile(pathToAsar, bufferReplace(asar, '{"files":{"default_app.js"', '{"files":{"default_oop.js"'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue