[repo] FabricaRelease: Lint the generated release notes before the page is made; fix escapes in the APK signing test
This commit is contained in:
@@ -40,15 +40,15 @@ describe('signArgs', () => {
|
||||
|
||||
describe('custosSign', () => {
|
||||
it('runs the custos-sign CUSTOS_SIGN_EXE names, else the one on PATH', () => {
|
||||
expect(custosSign({ CUSTOS_SIGN_EXE: 'F:\Apps\Custos\custos-sign.exe' }, () => true)).toBe('F:\Apps\Custos\custos-sign.exe');
|
||||
expect(custosSign({ CUSTOS_SIGN_EXE: 'F:\\Apps\\Custos\\custos-sign.exe' }, () => true)).toBe('F:\\Apps\\Custos\\custos-sign.exe');
|
||||
expect(custosSign({}, () => true)).toBe('custos-sign.exe');
|
||||
});
|
||||
|
||||
it('refuses a named custos-sign that is not there, rather than another one', () => {
|
||||
expect(() => custosSign({ CUSTOS_SIGN_EXE: 'X:\nowhere.exe' }, () => false)).toThrow(/not there/);
|
||||
expect(() => custosSign({ CUSTOS_SIGN_EXE: 'X:\\nowhere.exe' }, () => false)).toThrow(/not there/);
|
||||
});
|
||||
|
||||
it('refuses another Custos (CUSTOS_PIPE)', () => {
|
||||
expect(() => custosSign({ CUSTOS_PIPE: '\\.\pipe\test' }, () => true)).toThrow(/CUSTOS_PIPE/);
|
||||
expect(() => custosSign({ CUSTOS_PIPE: '\\\\.\\pipe\\test' }, () => true)).toThrow(/CUSTOS_PIPE/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user