Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export async function preContrastResult(

/**
* Results comparison
* @param exected List of expected files
* @param expected List of expected files that must be present in the directory
* @param dir The directory to be compared needs to be converted into an absolute path using path.resolve
*/
export async function expectFilesInDir(exected: string[], dir: string) {
export async function expectFilesInDir(expected: string[], dir: string) {
const results = await readdir(dir);
expect(results).toEqual(exected);
expect(results).toEqual(expect.arrayContaining(expected));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ const CreateTypespecProjectFolderPath = path.resolve(tempDir, "CreateTypespecPro
const createCase = "CreateTypespecProject";
const templateName = "Generic Rest API";
const templateNameDescription = "Create a project representing a generic REST API service.";
const expectedResults = [
".gitignore",
"main.tsp",
"node_modules",
"package-lock.json",
"package.json",
"tspconfig.yaml",
];
const expectedResults = [".gitignore", "main.tsp", "package.json", "tspconfig.yaml"];

const CreateCasesConfigList: CreateConfigType[] = [
{
Expand Down
Loading