»

Upgrade Mysql to MariaDB

Log — Tags: , , — Posted by Starck on February 26, 2014

Remove MySQL

Install MariaDB

Rquire.js with Jasmine 2

Coding — Tags: , , , — Posted by Starck on February 21, 2014

Require


Project structure

Project/
│
├── css/
│   └── jasmine.css
├── js/
│   ├── require.js
│   ├── main.js
│   ├── models/
│   │   ├── player.js
│   │   └── song.js
│   └── test
│       ├── spec/
│       │   └── playerSpec.js
│       ├── jasmine.js
│       ├── jasmine-html.js
│       └── boot.js
└── index.html

index.html

main.js

js/models/player.js

js/models/song.js

js/test/spec/playerSpec.js

method

  • toBe()
  • toEqual()
  • .not
  • toMatch(/Regex/)
  • toBeDefined()
  • toBeUndefined()
  • toBeNull()
  • toBeTruthy()
  • toBeFalsy()
  • toContain()
  • toBeLessThan()
  • toBeGreaterThan()
  • toBeCloseTo(e, number)
  • toThrow()
  • spyOn(obj, ‘method’)
    • toHaveBeenCalled()
    • toHaveBeenCalledWith(args…)
    • mostRecentCall

Geraldine Hamilton: Body parts on a chip

Log — Tags: , — Posted by Starck on February 17, 2014

(c) 2024 Starck Lin | powered by WordPress