@@ -69,7 +69,7 @@ function makeRyuCho(config: Partial<Config>, filenames: string[]) {
6969}
7070
7171describe ( 'RyuCho' , ( ) => {
72- it ( 'containsValidFile matches single config.includes[]' , ( ) => {
72+ it ( 'containsValidFile matches single config.includes[]' , async ( ) => {
7373 const includes = [ '/docs/**/*.md' ]
7474 const filenames = [
7575 '/docs/guide/index.md' ,
@@ -79,10 +79,10 @@ describe('RyuCho', () => {
7979 const ryuCho = makeRyuCho ( { includes } , filenames )
8080
8181 const hasValidFile = ryuCho . containsValidFile ( DEFAULT_FEED , 'hash' )
82- expect ( hasValidFile ) . resolves . toBe ( true )
82+ await expect ( hasValidFile ) . resolves . toBe ( true )
8383 } )
8484
85- it ( 'containsValidFile does not match any config.includes[]' , ( ) => {
85+ it ( 'containsValidFile does not match any config.includes[]' , async ( ) => {
8686 const includes = [ '/docs/**/*.md' ]
8787 const filenames = [
8888 '/docs/guide/index.txt' ,
@@ -92,10 +92,10 @@ describe('RyuCho', () => {
9292 const ryuCho = makeRyuCho ( { includes } , filenames )
9393
9494 const hasValidFile = ryuCho . containsValidFile ( DEFAULT_FEED , 'hash' )
95- expect ( hasValidFile ) . resolves . toBe ( false )
95+ await expect ( hasValidFile ) . resolves . toBe ( false )
9696 } )
9797
98- it ( 'containsValidFile matches multiple config.includes[]' , ( ) => {
98+ it ( 'containsValidFile matches multiple config.includes[]' , async ( ) => {
9999 const includes = [ '/docs/**/*.md' , '/README.md' ]
100100 const filenames = [
101101 '/docs/guide/index.md' ,
@@ -105,10 +105,10 @@ describe('RyuCho', () => {
105105 const ryuCho = makeRyuCho ( { includes } , filenames )
106106
107107 const hasValidFile = ryuCho . containsValidFile ( DEFAULT_FEED , 'hash' )
108- expect ( hasValidFile ) . resolves . toBe ( true )
108+ await expect ( hasValidFile ) . resolves . toBe ( true )
109109 } )
110110
111- it ( 'containsValidFile excludes specified config.includes[]' , ( ) => {
111+ it ( 'containsValidFile excludes specified config.includes[]' , async ( ) => {
112112 // match all *.md files except README.md
113113 const includes = [ '**/!(README).md' ]
114114 const filenames = [
@@ -119,10 +119,10 @@ describe('RyuCho', () => {
119119 const ryuCho = makeRyuCho ( { includes } , filenames )
120120
121121 const hasValidFile = ryuCho . containsValidFile ( DEFAULT_FEED , 'hash' )
122- expect ( hasValidFile ) . resolves . toBe ( false )
122+ await expect ( hasValidFile ) . resolves . toBe ( false )
123123 } )
124124
125- it ( 'containsValidFile excludes specified config.excludes[]' , ( ) => {
125+ it ( 'containsValidFile excludes specified config.excludes[]' , async ( ) => {
126126 const includes = [ '**/*.md' ]
127127 const filenames = [
128128 '/README.md' ,
@@ -131,6 +131,6 @@ describe('RyuCho', () => {
131131 const ryuCho = makeRyuCho ( { includes, excludes } , filenames )
132132
133133 const hasValidFile = ryuCho . containsValidFile ( DEFAULT_FEED , 'hash' )
134- expect ( hasValidFile ) . resolves . toBe ( false )
134+ await expect ( hasValidFile ) . resolves . toBe ( false )
135135 } )
136136} )
0 commit comments