Adding styles/scripts to specific page

You have wp_enqueu_script within your function spelled wrong. It should be wp_enqueue_script.

Also is_page_template() will look for your template file as is relative to your theme directory. If file.php is in the root of your theme then it would just be is_page_template('file.php'). Here is the reference for that function: https://developer.wordpress.org/reference/functions/is_page_template/

Try this:

function test(){
    if( is_page_template( 'file.php' ) ){
        wp_enqueue_script( 'custom-script', get_template_directory_uri() . 'js/custom.js' );
    }
}

add_action( 'wp_enqueue_scripts', 'test' );