mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 12:07:32 +00:00
Update the labeler tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import {checkGlobs} from '../src/labeler';
|
import {checkGlobs, MatchConfig} from '../src/labeler';
|
||||||
|
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
@@ -10,7 +10,10 @@ beforeAll(() => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const matchConfig = [{changedFiles: {any: ['*.txt']}}];
|
// I have to double cast here as this is what comes from js-yaml looks like which then gets transformed in toMatchConfig
|
||||||
|
const matchConfig = [
|
||||||
|
{'changed-files': [{any: ['*.txt']}]}
|
||||||
|
] as unknown as MatchConfig[];
|
||||||
|
|
||||||
describe('checkGlobs', () => {
|
describe('checkGlobs', () => {
|
||||||
it('returns true when our pattern does match changed files', () => {
|
it('returns true when our pattern does match changed files', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user