use std::fs::File;
use common::*;
use insta::assert_snapshot;
use mojique::{Config, DefaultConfig};
mod common;
#[test]
fn fd() -> anyhow::Result<()> {
let file = File::open(manifest_dir().join("LICENSE"))?;
let magic_type = DefaultConfig::default().build_handle()?.raw_fd(file)?;
assert_snapshot!(magic_type, @"ASCII text");
Ok(())
}