diff --git a/Anthony-lab/.eslintignore b/Anthony-lab/.eslintignore
new file mode 100644
index 0000000..05b1cf3
--- /dev/null
+++ b/Anthony-lab/.eslintignore
@@ -0,0 +1,5 @@
+**/node_modules/*
+**/vendor/*
+**/*.min.js
+**/coverage/*
+**/build/*
diff --git a/Anthony-lab/.eslintrc b/Anthony-lab/.eslintrc
new file mode 100644
index 0000000..840d336
--- /dev/null
+++ b/Anthony-lab/.eslintrc
@@ -0,0 +1,26 @@
+{
+ "env": {
+ "browser": true,
+ "node": true,
+ "commonjs": true,
+ "jest": true,
+ "es6": true
+ },
+ "globals": {
+ "err": true,
+ "req": true,
+ "res": true,
+ "next": true
+ },
+ "extends": "eslint:recommended",
+ "parserOptions": {
+ "sourceType": "module"
+ },
+ "rules": {
+ "no-console": "off",
+ "indent": [ "error", 2 ],
+ "quotes": ["error", "single", { "allowTemplateLiterals": true }],
+ "comma-dangle": ["error", "always-multiline"],
+ "semi": [ "error", "always" ]
+ }
+}
diff --git a/Anthony-lab/.gitignore b/Anthony-lab/.gitignore
new file mode 100644
index 0000000..feb67a8
--- /dev/null
+++ b/Anthony-lab/.gitignore
@@ -0,0 +1,362 @@
+
+# Created by https://www.gitignore.io/api/macos,linux,windows,visualstudio
+
+### Linux ###
+*~
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+# .nfs files are created when an open file is removed but is still being accessed
+.nfs*
+
+### macOS ###
+*.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+### Windows ###
+# Windows thumbnail cache files
+Thumbs.db
+ehthumbs.db
+ehthumbs_vista.db
+
+# Folder config file
+Desktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Windows Installer files
+*.cab
+*.msi
+*.msm
+*.msp
+
+# Windows shortcuts
+*.lnk
+
+### VisualStudio ###
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
+
+# User-specific files
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+
+# Visual Studio 2015 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUNIT
+*.VisualState.xml
+TestResult.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+**/Properties/launchSettings.json
+
+*_i.c
+*_p.c
+*_i.h
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# JustCode is a .NET coding add-in
+.JustCode
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# TODO: Uncomment the next line to ignore your web deploy settings.
+# By default, sensitive information, such as encrypted password
+# should be stored in the .pubxml.user file.
+#*.pubxml
+*.pubxml.user
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# The packages folder can be ignored because of Package Restore
+**/packages/*
+# except build/, which is used as an MSBuild target.
+!**/packages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/packages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Typescript v1 declaration files
+typings/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# JetBrains Rider
+.idea/
+*.sln.iml
+
+# CodeRush
+.cr/
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+### VisualStudio Patch ###
+# By default, sensitive information, such as encrypted password
+# should be stored in the .pubxml.user file.
+
+# End of https://www.gitignore.io/api/macos,linux,windows,visualstudio
diff --git a/Anthony-lab/README.md b/Anthony-lab/README.md
new file mode 100644
index 0000000..9be07af
--- /dev/null
+++ b/Anthony-lab/README.md
@@ -0,0 +1,9 @@
+Node Ecosystem
+
+greet.js exports a function that when a string is input a concatinated string is returned. It has an airty of one and expects it's value to be a string or else it will return null.
+
+arithmetic.js has two functions that are exported, one is add and the other subtract. It has an airty of two and expects both values to be numerical or else it will return null.
+
+
+
+use npm test in command prompt to run test suites when in the Anthony-lab directory.
diff --git a/Anthony-lab/__test__/arithmetic.test.js b/Anthony-lab/__test__/arithmetic.test.js
new file mode 100644
index 0000000..347e809
--- /dev/null
+++ b/Anthony-lab/__test__/arithmetic.test.js
@@ -0,0 +1,26 @@
+'use strict';
+
+const arithmetic = require('../lib/arithmetic.js');
+
+
+describe('Testing add and sub functionality with numerical and null values', () => {
+ test('add() should return 2', () => {
+ let result = arithmetic.add(1, 1);
+ expect(result).toEqual(2);
+ });
+
+ test('add() should return null', () => {
+ let result = arithmetic.add();
+ expect(result).toEqual(null);
+ });
+
+ test('add() should return 2', () => {
+ let result = arithmetic.sub(1, 1);
+ expect(result).toEqual(0);
+ });
+
+ test('add() should return null', () => {
+ let result = arithmetic.sub();
+ expect(result).toEqual(null);
+ });
+});
diff --git a/Anthony-lab/__test__/greet.test.js b/Anthony-lab/__test__/greet.test.js
new file mode 100644
index 0000000..e3b4e7d
--- /dev/null
+++ b/Anthony-lab/__test__/greet.test.js
@@ -0,0 +1,27 @@
+'use strict';
+
+const greet = require('../lib/greet.js');
+
+// Required Tests
+describe('Testing the greet functionality', () => {
+ test('greet() should return null', () => {
+ let result = greet();
+ expect(result).toEqual(null);
+ });
+
+ test('greet() should return "hello World"', () => {
+ let result = greet('World');
+ expect(result).toEqual('hello World');
+ });
+
+ // Extra Tests
+ test('greet() should return "hello Anthony"', () => {
+ let result = greet('Anthony');
+ expect(result).toEqual('hello Anthony');
+ });
+
+ test('greet() should return null', () => {
+ let result = greet(123);
+ expect(result).toEqual(null);
+ });
+});
diff --git a/Anthony-lab/coverage/clover.xml b/Anthony-lab/coverage/clover.xml
new file mode 100644
index 0000000..f9c08e4
--- /dev/null
+++ b/Anthony-lab/coverage/clover.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Anthony-lab/coverage/coverage-final.json b/Anthony-lab/coverage/coverage-final.json
new file mode 100644
index 0000000..c319556
--- /dev/null
+++ b/Anthony-lab/coverage/coverage-final.json
@@ -0,0 +1,3 @@
+{"/Users/anthonyrobinson/workspace/01-node-ecosystem-1/Anthony-lab/lib/arithmetic.js": {"path":"/Users/anthonyrobinson/workspace/01-node-ecosystem-1/Anthony-lab/lib/arithmetic.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":18,"column":2}},"1":{"start":{"line":5,"column":4},"end":{"line":9,"column":5}},"2":{"start":{"line":6,"column":6},"end":{"line":6,"column":18}},"3":{"start":{"line":8,"column":6},"end":{"line":8,"column":19}},"4":{"start":{"line":12,"column":4},"end":{"line":16,"column":5}},"5":{"start":{"line":13,"column":6},"end":{"line":13,"column":18}},"6":{"start":{"line":15,"column":6},"end":{"line":15,"column":20}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":7},"end":{"line":4,"column":8}},"loc":{"start":{"line":4,"column":20},"end":{"line":10,"column":3}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":11,"column":7},"end":{"line":11,"column":8}},"loc":{"start":{"line":11,"column":20},"end":{"line":17,"column":3}},"line":11}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":4},"end":{"line":9,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":9,"column":5}},{"start":{"line":5,"column":4},"end":{"line":9,"column":5}}],"line":5},"1":{"loc":{"start":{"line":5,"column":7},"end":{"line":5,"column":53}},"type":"binary-expr","locations":[{"start":{"line":5,"column":7},"end":{"line":5,"column":28}},{"start":{"line":5,"column":32},"end":{"line":5,"column":53}}],"line":5},"2":{"loc":{"start":{"line":12,"column":4},"end":{"line":16,"column":5}},"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":16,"column":5}},{"start":{"line":12,"column":4},"end":{"line":16,"column":5}}],"line":12},"3":{"loc":{"start":{"line":12,"column":7},"end":{"line":12,"column":53}},"type":"binary-expr","locations":[{"start":{"line":12,"column":7},"end":{"line":12,"column":28}},{"start":{"line":12,"column":32},"end":{"line":12,"column":53}}],"line":12}},"s":{"0":1,"1":2,"2":1,"3":1,"4":2,"5":1,"6":1},"f":{"0":2,"1":2},"b":{"0":[1,1],"1":[2,1],"2":[1,1],"3":[2,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"0909cbef70d9bdd5de7e02cc2705a88931fa8021"}
+,"/Users/anthonyrobinson/workspace/01-node-ecosystem-1/Anthony-lab/lib/greet.js": {"path":"/Users/anthonyrobinson/workspace/01-node-ecosystem-1/Anthony-lab/lib/greet.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":9,"column":2}},"1":{"start":{"line":4,"column":2},"end":{"line":8,"column":3}},"2":{"start":{"line":5,"column":4},"end":{"line":5,"column":27}},"3":{"start":{"line":7,"column":4},"end":{"line":7,"column":16}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":31},"end":{"line":9,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":2},"end":{"line":8,"column":3}},"type":"if","locations":[{"start":{"line":4,"column":2},"end":{"line":8,"column":3}},{"start":{"line":4,"column":2},"end":{"line":8,"column":3}}],"line":4}},"s":{"0":1,"1":4,"2":2,"3":2},"f":{"0":4},"b":{"0":[2,2]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"a479ca52db65f8b0e0f3fd2a983db90755c3729f"}
+}
diff --git a/Anthony-lab/coverage/lcov-report/arithmetic.js.html b/Anthony-lab/coverage/lcov-report/arithmetic.js.html
new file mode 100644
index 0000000..ff69ce7
--- /dev/null
+++ b/Anthony-lab/coverage/lcov-report/arithmetic.js.html
@@ -0,0 +1,119 @@
+
+
+