Skip to content

Commit

Permalink
fix(tests): Corrects project.spec.js.snap snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mfdebian committed Apr 2, 2024
1 parent a089841 commit 2674846
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions lib/__tests__/__snapshots__/project.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ exports[`parseProject > parses a project with learning objectives without valida
"title": "A project",
},
},
"learningObjectives": [
"html/semantics",
"css/selectors",
"dom/selectors",
"dom/events",
"dom/manipulation",
"js/data-types/primitive-vs-non-primitive",
"js/data-types/strings",
"js/variables",
"js/conditionals",
"js/functions",
"js/semantics",
"ux/user-understanding",
"ux/prototyping",
],
"optionalLearningObjectives": [],
"path": "lib/__tests__/__fixtures__/01-a-project-with-learning-objectives",
"prefix": 1,
"repo": "Laboratoria/bootcamp",
Expand All @@ -105,6 +121,22 @@ poderá cifrar e decifrar um texto indicando a chave de deslocamento (<em>offset
"title": "Cifra de César",
},
},
"learningObjectives": [
"html/semantics",
"css/selectors",
"browser/dom/selectors",
"browser/dom/events",
"browser/dom/manipulation",
"js/data-types/primitive",
"js/data-types/strings",
"js/variables",
"js/conditionals",
"js/functions",
"js/semantics",
"user-centricity/centricity",
"product-design/interactivity",
],
"optionalLearningObjectives": [],
"path": "lib/__tests__/__fixtures__/01-a-project-with-pt-translation",
"prefix": 1,
"repo": "Laboratoria/bootcamp",
Expand Down
2 changes: 1 addition & 1 deletion lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const transformLearningObjectives = async (dir, opts, meta) => {
});

if (!opts.lo || !existsSync(`${opts.lo}/data.yml`)) {
return learningObjectives;
return { nonOptionalLearningObjectives, optionalLearningObjectives };
}

const known = await loadYaml(`${opts.lo}/data.yml`);
Expand Down

0 comments on commit 2674846

Please sign in to comment.