Skip to content

Commit

Permalink
nit: Delete $FlowFixMe comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullah-kasim committed Oct 3, 2023
1 parent 73601a9 commit 4e98180
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion __tests__/bin/vip-config-envvar-delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ describe( 'deleteEnvVarCommand', () => {
await expect( () => deleteEnvVarCommand( args, opts ) ).rejects.toEqual( 'EXIT' );

expect( validateNameWithMessage ).toHaveBeenCalledWith( name );
// $FlowIgnore[method-unbinding] No idea how to fix this
expect( process.exit ).toHaveBeenCalledWith( 1 );

expect( promptForValue ).not.toHaveBeenCalled();
Expand Down
2 changes: 0 additions & 2 deletions __tests__/bin/vip-config-envvar-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ describe( 'setEnvVarCommand', () => {

it( 'validates the name, prompts for confirmation, sets the variable, and prints success', async () => {
const name = 'TEST_VARIABLE';
// $FlowIgnore[method-unbinding] No idea how to fix this
const value = 'test value';

setFixtures( name );
Expand Down Expand Up @@ -203,7 +202,6 @@ describe( 'setEnvVarCommand', () => {
await expect( () => setEnvVarCommand( args, opts ) ).rejects.toEqual( 'EXIT' );

expect( validateNameWithMessage ).toHaveBeenCalledWith( name );
// $FlowIgnore[method-unbinding] No idea how to fix this
expect( process.exit ).toHaveBeenCalledWith( 1 );

expect( promptForValue ).not.toHaveBeenCalled();
Expand Down
1 change: 0 additions & 1 deletion src/bin/vip-app-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ command( { format: true } ).argv( process.argv, async () => {
let response;
try {
response = await api.query( {
// $FlowFixMe: gql template is not supported by flow
query: gql`
query Apps($first: Int, $after: String) {
apps(first: $first, after: $after) {
Expand Down
2 changes: 0 additions & 2 deletions src/bin/vip-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ command( {

try {
await api.mutate( {
// $FlowFixMe: gql template is not supported by flow
mutation: gql`
mutation SyncEnvironmentMutation($input: AppEnvironmentSyncInput) {
syncEnvironment(input: $input) {
Expand Down Expand Up @@ -118,7 +117,6 @@ command( {
// The rest of the iterations are just for moving the spinner
api
.query( {
// $FlowFixMe: gql template is not supported by flow
query: gql`
query App($id: Int, $sync: Int) {
app(id: $id) {
Expand Down
2 changes: 0 additions & 2 deletions src/bin/vip-wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ const getTokenForCommand = async ( appId, envId, command ) => {
const api = await API();

return api.mutate( {
// $FlowFixMe: gql template is not supported by flow
mutation: gql`
mutation TriggerWPCLICommandMutation($input: AppEnvironmentTriggerWPCLICommandInput) {
triggerWPCLICommandOnAppEnvironment(input: $input) {
Expand All @@ -118,7 +117,6 @@ const getTokenForCommand = async ( appId, envId, command ) => {
const cancelCommand = async guid => {
const api = await API();
return api.mutate( {
// $FlowFixMe: gql template is not supported by flow
mutation: gql`
mutation cancelWPCLICommand($input: CancelWPCLICommandInput) {
cancelWPCLICommand(input: $input) {
Expand Down
1 change: 0 additions & 1 deletion src/lib/cli/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ args.argv = async function ( argv, cb ) {

try {
res = await api.query( {
// $FlowFixMe: gql template is not supported by flow
query: gql`query Apps( $first: Int, $after: String ) {
apps( first: $first, after: $after ) {
total
Expand Down

0 comments on commit 4e98180

Please sign in to comment.