Download wp-calypso/client/reader/lib/teams/test/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/lib/teams/test/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/reader/lib/teams/test/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/lib/teams/test/index.js
451 Bytes
| 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 ); | |
| } ); | |
| } ); | |