Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nstee-debug authored Oct 23, 2024
0 parents commit af53122
Show file tree
Hide file tree
Showing 9 changed files with 10,859 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* eslint-disable no-undef */
module.exports = {
"env": {
"browser": true,
"es2021": true,
"amd": true,
"node": true,
"mocha": true
},
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["wdio", "mocha"],
"extends": [
"eslint:recommended",
"plugin:wdio/recommended",
],
"rules": {
"mocha/no-skipped-tests": "error",
"mocha/no-exclusive-tests": "error"
},
}
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Spint 8 Project CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Run npm install
run: npm i
- name: Run eslint
run: npm run lint
- name: Run tests
run: npm run wdio
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# IDEs and editors
.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace


# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# Logs
logs
*.log
npm-debug.log*

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# System Files
.DS_Store
Thumbs.db
9 changes: 9 additions & 0 deletions helper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
getPhoneNumber: function(countryCode) {
const number = Math.floor(1000000000 + Math.random() * 9000000000)
return `${countryCode}${number}`
},
getElementByText: async function(obj) {
return await $(`div=${obj.toString()}`);
}
};
Loading

0 comments on commit af53122

Please sign in to comment.