angular-cn/tools/ts-api-guardian/test/helpers.ts

14 lines
406 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {readFileSync} from 'fs';
export function assertFileEqual(actualFile: string, expectedFile: string) {
expect(readFileSync(actualFile).toString()).toBe(readFileSync(expectedFile).toString());
}