Even formatting to be the same
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<div id='app'>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
Hi there, good to see you on my website.
|
||||
My name is Raymon Zutekouw({{ age }}).
|
||||
Building software and exploring the wide variety of tools (or making them) is my passion.
|
||||
To see it in action, checkout the stuff I make on <a href="https://github.com/Raymonzut">GitHub</a>.
|
||||
To see it in action, checkout the stuff I make on
|
||||
<a href='https://github.com/Raymonzut'>GitHub</a>.
|
||||
The projects that may be useful to others are open source; for inspiring others and improving each others work.
|
||||
That is why I am a huge fan of <a href="https://www.gnu.org/philosophy/free-sw.en.html">free software</a>.
|
||||
That is why I am a huge fan of
|
||||
<a href='https://www.gnu.org/philosophy/free-sw.en.html'>free software</a>.
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
@@ -20,7 +22,7 @@ export default {
|
||||
computed: {
|
||||
age: me.age
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -23,7 +23,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#qa{
|
||||
#qa {
|
||||
--block-spacing: 7.5em;
|
||||
|
||||
margin-top: var(--block-spacing);
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
module.exports = {
|
||||
age: age,
|
||||
};
|
||||
}
|
||||
|
||||
function age() {
|
||||
let birthdate = new Date(2002, 8, 29);
|
||||
let now = new Date();
|
||||
let birthdate = new Date(2002, 8, 29)
|
||||
let now = new Date()
|
||||
|
||||
let age = now.getFullYear() - birthdate.getFullYear();
|
||||
let age = now.getFullYear() - birthdate.getFullYear()
|
||||
|
||||
if (now.getMonth() < birthdate.getMonth()) {
|
||||
age--;
|
||||
age--
|
||||
}
|
||||
if (
|
||||
birthdate.getMonth() === now.getMonth() &&
|
||||
now.getDate() < birthdate.getDate()
|
||||
) {
|
||||
age--;
|
||||
age--
|
||||
}
|
||||
return age;
|
||||
return age
|
||||
}
|
||||
|
||||
+9
-9
@@ -1,10 +1,10 @@
|
||||
const assert = require("chai").assert;
|
||||
const me = require("../src/me");
|
||||
const assert = require('chai').assert
|
||||
const me = require('../src/me')
|
||||
|
||||
describe("me", () => {
|
||||
describe("age", () => {
|
||||
it("should return a positive number", () => {
|
||||
assert.isAbove(me.age(), 0);
|
||||
});
|
||||
});
|
||||
});
|
||||
describe('me', () => {
|
||||
describe('age', () => {
|
||||
it('should return a positive number', () => {
|
||||
assert.isAbove(me.age(), 0)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user