Skip to content

Commit

Permalink
Remove biased terminology in test file
Browse files Browse the repository at this point in the history
Summary: Replaces the term "dummy" with "fake" in the test fixtures for `metro-cache-key`.

Reviewed By: GijsWeterings

Differential Revision: D29515522

fbshipit-source-id: d94ef417e49775410c4a067944de410c4a21d46c
  • Loading branch information
motiz88 authored and facebook-github-bot committed Jul 1, 2021
1 parent b5adfa0 commit 3bd12ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/metro-cache-key/src/__tests__/index-test.js
Expand Up @@ -17,18 +17,18 @@ const fs = require('fs');
const getCacheKey = require('../index');

beforeAll(() => {
fs.writeFileSync('/a.txt', 'dummy content for a.txt');
fs.writeFileSync('/copy_of_a.txt', 'dummy content for a.txt');
fs.writeFileSync('/b.txt', 'dummy content for b.txt');
fs.writeFileSync('/a.txt', 'fake content for a.txt');
fs.writeFileSync('/copy_of_a.txt', 'fake content for a.txt');
fs.writeFileSync('/b.txt', 'fake content for b.txt');
});

test('calculates a cache key for a list of files', () => {
expect(getCacheKey(['/a.txt'])).toMatchInlineSnapshot(
`"159acfc2c1c60c655a305cb711c7bd2c"`,
`"651e28171df9ff5d72a4115295dfce6b"`,
);

expect(getCacheKey(['/a.txt', '/b.txt'])).toMatchInlineSnapshot(
`"1e34c10b2663b4681858340ec5da03ce"`,
`"40457a98d325b546bed62a34c7d7cf96"`,
);
});

Expand Down

0 comments on commit 3bd12ad

Please sign in to comment.