Skip to content

Commit

Permalink
Unit matching order
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Jan 24, 2024
1 parent 0faadee commit b1493eb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/src/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ const BASE = 'https://img.shields.io/badge/Self_Assessment-skills-009933';
const STYLE = `style=flat-square`;
const BADGE = `[![Skills](${BASE}?${STYLE})](${LINK})`;

const UNITS = [
'Programming',
'JavaScript',
'Async',
'NodeJS',
'Paradigms',
'Architecture',
];

let exitCode = 0;

const wrongFormat = (msg, file) => {
Expand Down Expand Up @@ -246,10 +255,9 @@ const getTotal = (answered) => {
const roles = await loadDir('.github/src/Roles');

console.log(caption`Match profiles`);
const units = Object.keys(skills);
const todos = [];
const totals = ['## Assessment totals\n'];
for (const unit of units) {
for (const unit of UNITS) {
console.log(chapter` Unit: ${unit}`);
const expected = roles[unit];
const answered = skills[unit];
Expand Down

0 comments on commit b1493eb

Please sign in to comment.