2018-03-01 13:41:35 -05:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 15:08:49 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2018-03-01 13:41:35 -05:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2021-04-08 03:26:53 -04:00
|
|
|
import {readFileSync} from 'fs';
|
2018-03-02 17:19:01 -05:00
|
|
|
|
|
|
|
export function assertFileEqual(actualFile: string, expectedFile: string) {
|
2021-04-08 03:26:53 -04:00
|
|
|
expect(readFileSync(actualFile).toString()).toBe(readFileSync(expectedFile).toString());
|
2018-03-02 17:19:01 -05:00
|
|
|
}
|