This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BallClock from './BallClock' | |
describe('BallClock Test', () => { | |
let ballClock | |
beforeEach(() => { | |
ballClock = new BallClock() | |
}) | |
it('should throw error when input number of balls is not between 27 and 127', () => { | |
expect(() => ballClock.init(26)).toThrowError() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Don't forget to change the namespace! | |
namespace App\Traits; | |
use Cron\CronExpression; | |
use Illuminate\Support\Carbon; | |
use Illuminate\Console\Scheduling\ManagesFrequencies; | |
trait Schedulable{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class League extends Model | |
{ | |
public function teams() | |
{ | |
return $this->hasMany(Team::class); | |
} | |
} |