File size: 451 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { isAutomatticTeamMember } from '../';

describe( 'isAutomatticTeamMember', () => {
	test( 'should return true if teams include a8c', () => {
		expect( isAutomatticTeamMember( [ { slug: 'a8c' }, { slug: 'okapi' } ] ) ).toBe( true );
	} );

	test( 'should return false if teams do include a8c', () => {
		expect( isAutomatticTeamMember( [] ) ).toBe( false );
		expect( isAutomatticTeamMember( [ { slug: 'okapi' } ] ) ).toBe( false );
	} );
} );